[quake3-commits] r1846 - trunk/code/game
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Feb 4 10:07:34 EST 2011
Author: thilo
Date: 2011-02-04 10:07:32 -0500 (Fri, 04 Feb 2011)
New Revision: 1846
Modified:
trunk/code/game/bg_lib.c
Log:
https://bugzilla.icculus.org/show_bug.cgi?id=4576
Modified: trunk/code/game/bg_lib.c
===================================================================
--- trunk/code/game/bg_lib.c 2011-02-04 14:44:17 UTC (rev 1845)
+++ trunk/code/game/bg_lib.c 2011-02-04 15:07:32 UTC (rev 1846)
@@ -917,12 +917,10 @@
if( Q_stricmpn( nptr, "nan", 3 ) == 0 )
{
floatint_t nan;
- if( endptr == NULL )
- {
- nan.ui = 0x7fffffff;
- return nan.f;
- }
- *endptr = &nptr[3];
+
+ if( endptr )
+ *endptr = &nptr[3];
+
// nan can be followed by a bracketed number (in hex, octal,
// or decimal) which is then put in the mantissa
// this can be used to generate signalling or quiet NaNs, for
More information about the quake3-commits
mailing list