[quake3-bugzilla] [Bug 3718] bg_lib.c vsnprintf behaves strangely with NaN
bugzilla-daemon at icculus.org
bugzilla-daemon at icculus.org
Thu May 7 16:59:43 EDT 2009
http://bugzilla.icculus.org/show_bug.cgi?id=3718
Ben Millwood <bugzilla at benmachine.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
--- Comment #1 from Ben Millwood <bugzilla at benmachine.co.uk> 2009-05-07 16:59:42 EDT ---
I think the same is true here of any floating-point number that is outside the
bounds of the integer data type, because of bg_lib.c:1632
intpart = ufvalue;
which obviously isn't going to work very well if the number is bigger than
INT_MAX.
There's no easy way to fix this - I believe glibc just uses a bignum library.
It may be possible to hack something together that takes fewer lines of code,
but it probably wouldn't be pretty, and anyway no-one except me cares :(
--
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the quake3-bugzilla
mailing list