From 1f970e7db36f5dc61946f5a3fbc38ada88c43464 Mon Sep 17 00:00:00 2001 From: Alanscut Date: Fri, 6 Dec 2019 17:11:12 +0800 Subject: [PATCH] fix double comparison --- tests/readme_examples.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/readme_examples.c b/tests/readme_examples.c index 1ab1b13..80ea8aa 100644 --- a/tests/readme_examples.c +++ b/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;