From 5cbdb2d0563613ffda76fc32f9a6357d3d2bee4b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 12 Mar 2025 08:40:27 -0400 Subject: Avoid implicit double promotion --- meson.build | 1 - test/test_node.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 6406deb1..255c1870 100644 --- a/meson.build +++ b/meson.build @@ -39,7 +39,6 @@ if cc.get_id() in ['clang', 'emscripten'] '-Wno-cast-function-type-strict', '-Wno-cast-qual', '-Wno-declaration-after-statement', - '-Wno-double-promotion', '-Wno-format-nonliteral', '-Wno-padded', '-Wno-switch-default', diff --git a/test/test_node.c b/test/test_node.c index eb432c40..b65d83bc 100644 --- a/test/test_node.c +++ b/test/test_node.c @@ -71,8 +71,8 @@ test_double_to_node(void) -16.00001, 5.000000005, 0.0000000001, - NAN, - INFINITY}; + (double)NAN, + (double)INFINITY}; const char* dbl_test_strs[] = {"0.0", "9.0", -- cgit v1.2.1