mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-28 04:03:35 +08:00
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:
parent
974c4a36d8
commit
9e8c0381bb
@ -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]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user