diff options
author | David Robillard <d@drobilla.net> | 2025-03-12 08:40:27 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-03-16 20:22:37 -0400 |
commit | 5cbdb2d0563613ffda76fc32f9a6357d3d2bee4b (patch) | |
tree | 377c35dcb53895e60118c67b5cb222ebb860c4e3 | |
parent | 71a5b8e72ad812ed62c27794439d745fd66c5220 (diff) | |
download | serd-5cbdb2d0563613ffda76fc32f9a6357d3d2bee4b.tar.gz serd-5cbdb2d0563613ffda76fc32f9a6357d3d2bee4b.tar.bz2 serd-5cbdb2d0563613ffda76fc32f9a6357d3d2bee4b.zip |
Avoid implicit double promotion
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | 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", |