mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
remove annoying float-equal option
This commit is contained in:
parent
fa8b454552
commit
74b2f03837
@ -47,7 +47,6 @@ if (ENABLE_CUSTOM_COMPILER_FLAGS)
|
|||||||
-Wmissing-variable-declarations
|
-Wmissing-variable-declarations
|
||||||
-Wused-but-marked-unused
|
-Wused-but-marked-unused
|
||||||
-Wswitch-enum
|
-Wswitch-enum
|
||||||
-Wfloat-equal
|
|
||||||
)
|
)
|
||||||
elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
|
elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
|
||||||
# Disable warning c4001 - nonstandard extension 'single line comment' was used
|
# Disable warning c4001 - nonstandard extension 'single line comment' was used
|
||||||
|
2
cJSON.c
2
cJSON.c
@ -503,7 +503,7 @@ static cJSON_bool print_number(const cJSON * const item, printbuffer * const out
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* This checks for NaN and Infinity */
|
/* This checks for NaN and Infinity */
|
||||||
if (!compare_double(d * 0, 0))
|
if ((d * 0) != 0)
|
||||||
{
|
{
|
||||||
length = sprintf((char*)number_buffer, "null");
|
length = sprintf((char*)number_buffer, "null");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user