Permalink
Browse files

Duh. boolean decoding was off-by-one

Does it get much worse?
  • Loading branch information...
1 parent 058833a commit eab73ae59909c7f7377767d3ee57859f856c9c74 @krestenkrab committed Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/riak_mongo_bson2.erl
@@ -130,8 +130,8 @@ get_element_value(?OBJECTID_TAG, <<ObjectID:12/binary, Rest/binary>>) ->
get_element_value(?BOOLEAN_TAG, <<Bool, Rest/binary>>) ->
case Bool of
- 0 -> {true, Rest};
- 1 -> {false, Rest}
+ 1 -> {true, Rest};
+ 0 -> {false, Rest}
end;
get_element_value(?UTC_TIME_TAG, <<MilliSecs:64/little-unsigned, Rest/binary>>) ->

0 comments on commit eab73ae

Please sign in to comment.