Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

{bignum,N} type to force 64bit integer

  • Loading branch information...
commit 42eecc57b3a08fbb0bee363da21de39eb465578d 1 parent b1b2c30
@SergejJurecko authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  mongodb.erl
View
2  mongodb.erl
@@ -1167,6 +1167,8 @@ encode_element({Name, {ref, Collection, <<First:8/little-binary-unit:8, Second:4
encode_element({Name, {code, Code}}) ->
CodeEncoded = encode_cstring(Code),
<<13, Name/binary, 0, (byte_size(CodeEncoded)):32/little-signed, CodeEncoded/binary>>;
+encode_element({Name,{bignum,Value}}) ->
+ <<18, Name/binary, 0, Value:64/little-signed>>;
% code with scope
encode_element({Name, {code, C, S}}) ->
Code = encode_cstring(C),
Please sign in to comment.
Something went wrong with that request. Please try again.