From 1e7850b17ed2dd2d1e3b1034aad5bcb9e02fb6e3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 1 Apr 2023 12:27:48 +0200 Subject: [PATCH] - fixed last commit --- source/common/thirdparty/rapidjson/writer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/thirdparty/rapidjson/writer.h b/source/common/thirdparty/rapidjson/writer.h index 1888af8f4..bbc944979 100644 --- a/source/common/thirdparty/rapidjson/writer.h +++ b/source/common/thirdparty/rapidjson/writer.h @@ -552,9 +552,9 @@ inline bool Writer::WriteUint64(uint64_t u) { template<> inline bool Writer::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.