Module Name:    src
Committed By:   riastradh
Date:           Thu May  2 16:52:08 UTC 2024

Modified Files:
        src/tests/lib/libm: t_fe_round.c

Log Message:
tests/lib/libm/t_fe_round: Fix a missed cast.

Need long long or intmax_t, not long, on LP32.

PR lib/58054


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libm/t_fe_round.c
diff -u src/tests/lib/libm/t_fe_round.c:1.14 src/tests/lib/libm/t_fe_round.c:1.15
--- src/tests/lib/libm/t_fe_round.c:1.14	Thu May  2 16:51:55 2024
+++ src/tests/lib/libm/t_fe_round.c	Thu May  2 16:52:08 2024
@@ -187,7 +187,7 @@ ATF_TC_BODY(fe_nearbyintl, tc)
 		    " (integer part %Lf)",
 		    i, rmname(valuesl[i].round_mode), valuesl[i].input, fpart,
 		    ipart);
-		ATF_CHECK_MSG((long int)received == valuesl[i].expected,
+		ATF_CHECK_MSG((intmax_t)received == valuesl[i].expected,
 		    "[%u] %s nearbyintl(%Lf): got %Lf, expected %jd",
 		    i, rmname(valuesl[i].round_mode),
 		    valuesl[i].input, received, valuesl[i].expected);

Reply via email to