diff options
author | Khem Raj <[email protected]> | 2024-10-02 17:04:08 -0700 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2024-10-03 10:59:56 +0200 |
commit | 3cb047b9c55c86ae613df8aacc21c517dc3fa468 (patch) | |
tree | dc9b38ba9ce5501fa7b2352281bf744f3536b151 | |
parent | b47bdee08a16078c8a4d81b440f99f630e3e5631 (diff) |
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 <[email protected]>
-rw-r--r-- | tests/funcretval_test_struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |