diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-06-13 10:39:42 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-09 23:15:55 +0000 |
commit | fca35e6b402050ae45f3ca463b0ff48daafda987 (patch) | |
tree | ef24fb42ec1385896680f64354be3a44e071fd8b | |
parent | 6a71409a0622050f9a682d4e3b02419c444febe5 (diff) |
- Fix macro that uses constant float suffix as argument - retval variables in ftola.c must have type long, not int
-rw-r--r-- | src/qcommon/q_shared.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h index 389412b0..08e202d7 100644 --- a/src/qcommon/q_shared.h +++ b/src/qcommon/q_shared.h @@ -457,8 +457,8 @@ int Q_isnan(float x); // 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\ {\ |