Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Linux
-
Description
MinKey is defined as -1, so a signed char must be used to store BSONType
enumerations. Using a char to store a negative value results in
undefined behaviour. On i386 and amd64 architectures it happens to work
because on these platforms a char is generally signed, but this is not
guaranteed.