Skip to content

Commit

Permalink
- Fix macro that uses constant float suffix as argument
Browse files Browse the repository at this point in the history
- retval variables in ftola.c must have type long, not int
  • Loading branch information
Thilo Schulz committed Jun 13, 2011
1 parent 03201af commit bb8f405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/qcommon/q_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -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\
{\
Expand Down

0 comments on commit bb8f405

Please sign in to comment.