File tree 1 file changed +4
-5
lines changed 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1905,11 +1905,10 @@ CharReader* CharReaderBuilder::newCharReader() const {
1905
1905
settings_[" allowDroppedNullPlaceholders" ].asBool ();
1906
1906
features.allowNumericKeys_ = settings_[" allowNumericKeys" ].asBool ();
1907
1907
features.allowSingleQuotes_ = settings_[" allowSingleQuotes" ].asBool ();
1908
- #if defined(JSON_HAS_INT64)
1909
- features.stackLimit_ = settings_[" stackLimit" ].asUInt64 ();
1910
- #else
1911
- features.stackLimit_ = settings_[" stackLimit" ].asUInt ();
1912
- #endif
1908
+
1909
+ // Stack limit is always a size_t, so we get this as an unsigned int
1910
+ // regardless of it we have 64-bit integer support enabled.
1911
+ features.stackLimit_ = static_cast <size_t >(settings_[" stackLimit" ].asUInt ());
1913
1912
features.failIfExtra_ = settings_[" failIfExtra" ].asBool ();
1914
1913
features.rejectDupKeys_ = settings_[" rejectDupKeys" ].asBool ();
1915
1914
features.allowSpecialFloats_ = settings_[" allowSpecialFloats" ].asBool ();
You can’t perform that action at this time.
0 commit comments