mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- fixed last commit
This commit is contained in:
parent
a64f19c16d
commit
1e7850b17e
1 changed files with 1 additions and 1 deletions
2
source/common/thirdparty/rapidjson/writer.h
vendored
2
source/common/thirdparty/rapidjson/writer.h
vendored
|
@ -552,9 +552,9 @@ inline bool Writer<StringBuffer>::WriteUint64(uint64_t u) {
|
|||
|
||||
template<>
|
||||
inline bool Writer<StringBuffer>::WriteDouble(double d) {
|
||||
bool ret = true;
|
||||
if (internal::Double(d).IsNanOrInf()) {
|
||||
// Note: This code path can only be reached if (RAPIDJSON_WRITE_DEFAULT_FLAGS & kWriteNanAndInfFlag).
|
||||
bool ret = true;
|
||||
if (!(kWriteDefaultFlags & kWriteNanAndInfFlag))
|
||||
{
|
||||
// if we abort here, the writer is left in a broken state, unable to recover, so better write a 0 in addition to returning an error.
|
||||
|
|
Loading…
Reference in a new issue