mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Fix copy'n'pastos.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2013-03-15 Thomas Schwinge <thomas@codesourcery.com>
|
2013-03-15 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
|
* math/test-misc.c (main): Fix copy'n'pastos.
|
||||||
|
* misc/tst-efgcvt.c (special): Likewise.
|
||||||
|
|
||||||
* stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
|
* stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
|
||||||
Remove declarations.
|
Remove declarations.
|
||||||
|
|
||||||
|
@ -1116,7 +1116,7 @@ main (void)
|
|||||||
}
|
}
|
||||||
else if (fetestexcept (FE_UNDERFLOW))
|
else if (fetestexcept (FE_UNDERFLOW))
|
||||||
{
|
{
|
||||||
puts ("scalbl(NaN, 0) raises underflow exception");
|
puts ("scalbl (LDBL_MIN, 2147483647) raises underflow exception");
|
||||||
result = 1;
|
result = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1134,7 +1134,7 @@ main (void)
|
|||||||
}
|
}
|
||||||
else if (fetestexcept (FE_OVERFLOW))
|
else if (fetestexcept (FE_OVERFLOW))
|
||||||
{
|
{
|
||||||
puts ("scalbl(NaN, 0) raises overflow exception");
|
puts ("scalbl (LDBL_MAX, -2147483647) raises overflow exception");
|
||||||
result = 1;
|
result = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,7 @@ special (void)
|
|||||||
|
|
||||||
p = ecvt (INFINITY, 10, &decpt, &sign);
|
p = ecvt (INFINITY, 10, &decpt, &sign);
|
||||||
if (sign != 0 || strcmp (p, "inf") != 0)
|
if (sign != 0 || strcmp (p, "inf") != 0)
|
||||||
output_error ("ecvt", NAN, 10, "inf", 0, 0, p, decpt, sign);
|
output_error ("ecvt", INFINITY, 10, "inf", 0, 0, p, decpt, sign);
|
||||||
|
|
||||||
/* Simply make sure these calls with large NDIGITs don't crash. */
|
/* Simply make sure these calls with large NDIGITs don't crash. */
|
||||||
(void) ecvt (123.456, 10000, &decpt, &sign);
|
(void) ecvt (123.456, 10000, &decpt, &sign);
|
||||||
|
Reference in New Issue
Block a user