We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebfad69 commit 83b6261Copy full SHA for 83b6261
src/oatpp-mongo/bson/Utils.cpp
@@ -34,7 +34,8 @@ Utils::BO_TYPE Utils::FLOAT_BO = detectFloatBO();
34
35
Utils::BO_TYPE Utils::detectIntBO() {
36
BO_TYPE result = BO_TYPE::UNKNOWN;
37
- BO_CHECK check {.i64 = 255};
+ BO_CHECK check;
38
+ check.i64 = 255;
39
if(check.bytes[0] == 255) {
40
result = BO_TYPE::LITTLE;
41
} else if(check.bytes[7] == 255) {
@@ -45,7 +46,8 @@ Utils::BO_TYPE Utils::detectIntBO() {
45
46
47
Utils::BO_TYPE Utils::detectFloatBO() {
48
- BO_CHECK check {.f64 = 2.0};
49
50
+ check.f64 = 2.0;
51
if(check.bytes[0] > 0) {
52
result = BO_TYPE::NETWORK;
53
} else if(check.bytes[7] > 0) {
0 commit comments