Skip to content

Commit

Permalink
tests: lib: cbprintf_package: fix long-double promotion warning
Browse files Browse the repository at this point in the history
Long Double promotion warnings are generated with the flag
-Wdouble-promotion

Signed-off-by: Ryan McClelland <[email protected]>
  • Loading branch information
XenuIsWatching committed Jul 19, 2023
1 parent 7666344 commit 6657959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lib/cbprintf_package/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ ZTEST(cbprintf_package, test_cbprintf_package)
TEST_PACKAGING(0, "test %f %a", (double)f, d);
#if CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE && !(defined(CONFIG_RISCV) && !defined(CONFIG_64BIT))
/* Excluding riscv32 which does not handle long double correctly. */
long double ld = 1.2333;
long double ld = 1.2333L;

TEST_PACKAGING(0, "test %Lf", ld);
#endif
Expand Down

0 comments on commit 6657959

Please sign in to comment.