-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Fully Compatible
-
Dev Tools 2019-12-16
-
0
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 |