mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Merge 61eb599914
into cb8693b058
This commit is contained in:
commit
f474d8a660
2
cJSON.c
2
cJSON.c
@ -362,10 +362,12 @@ loop_end:
|
||||
if (number >= INT_MAX)
|
||||
{
|
||||
item->valueint = INT_MAX;
|
||||
item->valuelong = (long)strtol((const char *)number_c_string, (char **)NULL, 10);
|
||||
}
|
||||
else if (number <= (double)INT_MIN)
|
||||
{
|
||||
item->valueint = INT_MIN;
|
||||
item->valuelong = (long)strtol((const char *)number_c_string, (char **)NULL, 10);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user