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 f97723d commit 48d9a92Copy full SHA for 48d9a92
src/lib_json/json_value.cpp
@@ -34,7 +34,8 @@ namespace Json {
34
#define ALIGNAS(byte_alignment)
35
#endif
36
static const unsigned char ALIGNAS(8) kNull[sizeof(Value)] = {0};
37
-const Value& Value::null = reinterpret_cast<const Value&>(kNull);
+const unsigned char& kNullRef = kNull[0];
38
+const Value& Value::null = reinterpret_cast<const Value&>(kNullRef);
39
40
const Int Value::minInt = Int(~(UInt(-1) / 2));
41
const Int Value::maxInt = Int(UInt(-1) / 2);
0 commit comments