[quake3-commits] r2021 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Jun 13 06:39:42 EDT 2011
Author: thilo
Date: 2011-06-13 06:39:42 -0400 (Mon, 13 Jun 2011)
New Revision: 2021
Modified:
trunk/code/qcommon/q_shared.h
Log:
- Fix macro that uses constant float suffix as argument
- retval variables in ftola.c must have type long, not int
Modified: trunk/code/qcommon/q_shared.h
===================================================================
--- trunk/code/qcommon/q_shared.h 2011-06-13 09:56:39 UTC (rev 2020)
+++ trunk/code/qcommon/q_shared.h 2011-06-13 10:39:42 UTC (rev 2021)
@@ -457,8 +457,8 @@
// if your system does not have lrintf() and round() you can try this block. Please also open a bug report at bugzilla.icculus.org
// or write a mail to the ioq3 mailing list.
#else
- #define Q_ftol(f) ((long) (f))
- #define Q_round(f) do { if((f) < 0) (f) -= 0.5f; else (f) += 0.5f; (f) = Q_ftol((f)); } while(0)
+ #define Q_ftol(v) ((long) (v))
+ #define Q_round(v) do { if((v) < 0) (v) -= 0.5f; else (v) += 0.5f; (v) = Q_ftol((v)); } while(0)
#define Q_SnapVector(vec) \
do\
{\
More information about the quake3-commits
mailing list