-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Dev Tools 2019-12-16
-
0
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The BSON formatter should do the following for integer types, unconditionally of the values:
C++ type | BSON encoding | Comment |
---|---|---|
int | signed int32 | |
unsigned int | signed int64 | resulting type always the same, avoiding negative numbers |
long | signed int64 | long on Windows is 32bit, always store as 64bit |
unsigned long | signed int64 | |
long long | signed int64 | |
unsigned long long | signed int64 | large numbers will be stored as negative |