Bug #1566 ยป fix-nan-and-inf-in-sprintf.diff
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') {
|