1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

test: use fabsl instead of fabs as json_variant_real() returns 'long double'

This commit is contained in:
Yu Watanabe 2018-10-13 23:59:16 +09:00
parent 172e4806dd
commit 40990eac27

View File

@ -208,7 +208,7 @@ static void test_2(JsonVariant *v) {
/* has thisisaverylongproperty */
p = json_variant_by_key(v, "thisisaverylongproperty");
assert_se(p && json_variant_type(p) == JSON_VARIANT_REAL && fabs(json_variant_real(p) - 1.27) < 0.001);
assert_se(p && json_variant_type(p) == JSON_VARIANT_REAL && fabsl(json_variant_real(p) - 1.27) < 0.001);
}