]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: JSON_BUILD_REAL nowadays expects 'double', not 'long double'
authorLennart Poettering <lennart@poettering.net>
Mon, 9 May 2022 10:07:54 +0000 (12:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 May 2022 12:32:31 +0000 (14:32 +0200)
Follow-up for 337712e777bff389f53e26d5b378d2ceba7d98a8, aka "the great
un-long-double-ification of 2021".

src/test/test-json.c

index b385edc269e0b5ecc95792cc4dfd744049919e45..1178843f68568432cb97c7a07ead0126ea92c285 100644 (file)
@@ -315,7 +315,7 @@ TEST(build) {
         a = json_variant_unref(a);
         b = json_variant_unref(b);
 
-        assert_se(json_build(&a, JSON_BUILD_REAL(M_PIl)) >= 0);
+        assert_se(json_build(&a, JSON_BUILD_REAL(M_PI)) >= 0);
 
         s = mfree(s);
         assert_se(json_variant_format(a, 0, &s) >= 0);