From: Khem Raj Date: Thu, 3 Oct 2024 00:04:08 +0000 (-0700) Subject: tests: Fix specifying constant of double type X-Git-Tag: elfutils-0.192~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cb047b9c55c86ae613df8aacc21c517dc3fa468;p=thirdparty%2Felfutils.git tests: Fix specifying constant of double type 'd' suffix seems to be not acceptable by clang compiler Using 'e0' fixes this by keeping value to be same Fixes funcretval_test_struct.c:83:27: error: invalid suffix 'd' on floating constant 83 | dpoint_t dp = dmkpt (3.0d, 1.0d); | ^ funcretval_test_struct.c:83:33: error: invalid suffix 'd' on floating constant 83 | dpoint_t dp = dmkpt (3.0d, 1.0d); | Signed-off-by: Khem Raj --- diff --git a/tests/funcretval_test_struct.c b/tests/funcretval_test_struct.c index df94bde0..6bf82f7d 100644 --- a/tests/funcretval_test_struct.c +++ b/tests/funcretval_test_struct.c @@ -80,7 +80,7 @@ main (void) div_t d = div (3, 2); ldiv_t ld = ldiv (3, 2); point_t p = mkpt (3.0f, 1.0f); - dpoint_t dp = dmkpt (3.0d, 1.0d); + dpoint_t dp = dmkpt (3.0e0, 1.0e0); return d.q - (int) p.y + ld.q - (int) dp.y; }