소스 검색

fix double comparison

Alanscut 5 년 전
부모
커밋
1f970e7db3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;