]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/oatpp-mongo/no-designatore-expression.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / oatpp-mongo / no-designatore-expression.patch
1 diff --git a/src/oatpp-mongo/bson/Utils.cpp b/src/oatpp-mongo/bson/Utils.cpp
2 index c848c59..32a9e4c 100644
3 --- a/src/oatpp-mongo/bson/Utils.cpp
4 +++ b/src/oatpp-mongo/bson/Utils.cpp
5 @@ -34,7 +34,8 @@ Utils::BO_TYPE Utils::FLOAT_BO = detectFloatBO();
6
7 Utils::BO_TYPE Utils::detectIntBO() {
8 BO_TYPE result = BO_TYPE::UNKNOWN;
9 - BO_CHECK check {.i64 = 255};
10 + BO_CHECK check;
11 + check.i64 = 255;
12 if(check.bytes[0] == 255) {
13 result = BO_TYPE::LITTLE;
14 } else if(check.bytes[7] == 255) {
15 @@ -45,7 +46,8 @@ Utils::BO_TYPE Utils::detectIntBO() {
16
17 Utils::BO_TYPE Utils::detectFloatBO() {
18 BO_TYPE result = BO_TYPE::UNKNOWN;
19 - BO_CHECK check {.f64 = 2.0};
20 + BO_CHECK check;
21 + check.f64 = 2.0;
22 if(check.bytes[0] > 0) {
23 result = BO_TYPE::NETWORK;
24 } else if(check.bytes[7] > 0) {