Explorar o código

fix double comparison

Alanscut %!s(int64=5) %!d(string=hai) anos
pai
achega
1f970e7db3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/readme_examples.c

+ 1 - 1
tests/readme_examples.c

@@ -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;