aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-03-12 08:40:27 -0400
committerDavid Robillard <d@drobilla.net>2025-03-16 20:22:37 -0400
commit5cbdb2d0563613ffda76fc32f9a6357d3d2bee4b (patch)
tree377c35dcb53895e60118c67b5cb222ebb860c4e3
parent71a5b8e72ad812ed62c27794439d745fd66c5220 (diff)
downloadserd-5cbdb2d0563613ffda76fc32f9a6357d3d2bee4b.tar.gz
serd-5cbdb2d0563613ffda76fc32f9a6357d3d2bee4b.tar.bz2
serd-5cbdb2d0563613ffda76fc32f9a6357d3d2bee4b.zip
Avoid implicit double promotion
-rw-r--r--meson.build1
-rw-r--r--test/test_node.c4
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",