Project

General

Profile

Bug #1566 ยป fix-nan-and-inf-in-sprintf.diff

Fix NaN and Inf capitalization in sprintf - m (m .), 09/08/2009 07:53 AM

View differences:

sprintf.c.2 2009-09-07 17:48:09.000000000 -0500
char fbuf[32];
fval = RFLOAT(rb_Float(val))->value;
#if defined(_WIN32) && !defined(__BORLANDC__)
if (isnan(fval) || isinf(fval)) {
char *expr;
......
blen += strlen(&buf[blen]);
break;
}
#endif /* defined(_WIN32) && !defined(__BORLANDC__) */
fmt_setup(fbuf, *p, flags, width, prec);
need = 0;
if (*p != 'e' && *p != 'E') {
    (1-1/1)