mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-27 14:14:07 +08:00
fix double comparison
This commit is contained in:
parent
98ecc0245a
commit
1f970e7db3
@ -202,7 +202,7 @@ static int supports_full_hd(const char * const monitor)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((width->valuedouble == 1920) && (height->valuedouble == 1080))
|
if (compare_double(width->valuedouble, 1920) && compare_double(height->valuedouble, 1080))
|
||||||
{
|
{
|
||||||
status = 1;
|
status = 1;
|
||||||
goto end;
|
goto end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user