Skip to content

Commit

Permalink
Merge branch 'upcu-patch-2'
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed Jun 12, 2014
2 parents db83887 + 5bbabe9 commit 3d96060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bson/bson.js
Expand Up @@ -624,7 +624,7 @@ var packElement = function(name, value, checkKeys, buffer, index, serializeFunct
return index;
} else if(value instanceof Long || value instanceof Timestamp || value['_bsontype'] == 'Long' || value['_bsontype'] == 'Timestamp') {
// Write the type
buffer[index++] = value instanceof Long ? BSON.BSON_DATA_LONG : BSON.BSON_DATA_TIMESTAMP;
buffer[index++] = value instanceof Long || value['_bsontype'] == 'Long' ? BSON.BSON_DATA_LONG : BSON.BSON_DATA_TIMESTAMP;
// Number of written bytes
var numberOfWrittenBytes = supportsBuffer ? buffer.write(name, index, 'utf8') : writeToTypedArray(buffer, name, index);
// Encode the name
Expand Down

0 comments on commit 3d96060

Please sign in to comment.