summaryrefslogtreecommitdiff
path: root/math/test-fenvinline.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-04-06 10:43:59 -0700
committerRichard Henderson <rth@twiddle.net>2015-04-06 10:43:59 -0700
commit9e8c0381bbc6faf08cfc584e3848dd265d0d7e1a (patch)
tree41bfa09aecf9c85c559c639bbde5b6e723f98130 /math/test-fenvinline.c
parent974c4a36d828412672c4b480c33009f70a914b01 (diff)
downloadglibc-9e8c0381bbc6faf08cfc584e3848dd265d0d7e1a.tar.gz
math/test-fenvinline: Cast fe_exc to unsigned int before printing
On Alpha and IA-64, fexcept_t is unsigned long. But all the values fit within an int, so the cast is ok for printing. All other hosts use unsigned int or unsigned short already.
Diffstat (limited to 'math/test-fenvinline.c')
-rw-r--r--math/test-fenvinline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/test-fenvinline.c b/math/test-fenvinline.c
index 87c9df44b3..b02cefd7f8 100644
--- a/math/test-fenvinline.c
+++ b/math/test-fenvinline.c
@@ -249,7 +249,7 @@ feenable_test (const char *flag_name, fexcept_t fe_exc)
if (excepts != fe_exc)
{
printf ("Test: fedisableexcept (%s) failed, return should be 0x%x, is 0x%x\n",
- flag_name, fe_exc, excepts);
+ flag_name, (unsigned int)fe_exc, excepts);
++count_errors;
}
@@ -284,7 +284,7 @@ feenable_test (const char *flag_name, fexcept_t fe_exc)
if (excepts != fe_exc)
{
printf ("Test: fedisableexcept (%s) failed, return should be 0x%x, is 0x%x\n",
- flag_name, fe_exc, excepts);
+ flag_name, (unsigned int)fe_exc, excepts);
++count_errors;
}
#endif