mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-09-21 09:44:58 +03:00
test: JSON_BUILD_REAL nowadays expects 'double', not 'long double'
Follow-up for337712e777
, aka "the great un-long-double-ification of 2021". (cherry picked from commitf9a1fd2a3b
)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
5f82701d48
commit
1ebbd665ea
@@ -315,7 +315,7 @@ TEST(build) {
|
|||||||
a = json_variant_unref(a);
|
a = json_variant_unref(a);
|
||||||
b = json_variant_unref(b);
|
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);
|
s = mfree(s);
|
||||||
assert_se(json_variant_format(a, 0, &s) >= 0);
|
assert_se(json_variant_format(a, 0, &s) >= 0);
|
||||||
|
Reference in New Issue
Block a user