Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Richard Henderson committed Apr 6, 2015
1 parent 974c4a3 commit 9e8c038
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -3,6 +3,9 @@
* sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
* sysdeps/alpha/fpu/libm-test-ulps: Update.

* math/test-fenvinline.c (feenable_test): Cast fe_exc to
unsigned int before printing.

2015-04-03 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>

[BZ #17596]
Expand Down
4 changes: 2 additions & 2 deletions math/test-fenvinline.c
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9e8c038

Please sign in to comment.