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.
This commit is contained in:
Richard Henderson 2015-04-06 10:43:59 -07:00
parent 974c4a36d8
commit 9e8c0381bb
2 changed files with 5 additions and 2 deletions

View File

@ -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]

View File

@ -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