Skip to content

Commit

Permalink
B-0 Fixed small warning missing typecast.
Browse files Browse the repository at this point in the history
VS doesn't like assigning a regular number to an enum
  • Loading branch information
Jose Sebastian Battig committed Mar 19, 2014
1 parent 95475d8 commit 50669a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bson/bson-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ _bson_json_read_map_key (void *_ctx, /* IN */
if (bson->read_state == BSON_JSON_IN_START_MAP) {
if (len > 0 && val[0] == '$' && _is_known_key ((const char *)val)) {
bson->read_state = BSON_JSON_IN_BSON_TYPE;
bson->bson_type = 0;
bson->bson_type = (bson_type_t) 0;
memset (&bson->bson_type_data, 0, sizeof bson->bson_type_data);
} else {
bson->read_state = BSON_JSON_REGULAR;
Expand Down

0 comments on commit 50669a3

Please sign in to comment.