]> git.feebdaed.xyz Git - 0xmirror/cJSON.git/commitdiff
fix double comparison
authorAlanscut <wp_scut@163.com>
Fri, 6 Dec 2019 09:11:12 +0000 (17:11 +0800)
committerAlanscut <wp_scut@163.com>
Fri, 6 Dec 2019 09:11:12 +0000 (17:11 +0800)
tests/readme_examples.c

index 1ab1b13916680c4e2f93a83deec1574bb8285451..80ea8aa112da57d00ac12b01fad40a33a36f5a71 100644 (file)
@@ -202,7 +202,7 @@ static int supports_full_hd(const char * const monitor)
             goto end;
         }
 
-        if ((width->valuedouble == 1920) && (height->valuedouble == 1080))
+        if (compare_double(width->valuedouble, 1920) && compare_double(height->valuedouble, 1080))
         {
             status = 1;
             goto end;