summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-06-16 01:26:17 +0000
committerTim Angus <tim@ngus.net>2013-01-10 21:28:22 +0000
commit5d8925bbaffaf95c49cdcf363b536acc9f7b9f40 (patch)
treefc703ca67baa6346b13cd0eaeb0707c64a9e0382
parent1d26bab126400b065525340c9b6a377fbf9069f0 (diff)
Use Q_ftol for vm_interpreted
-rw-r--r--src/qcommon/vm_interpreted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/vm_interpreted.c b/src/qcommon/vm_interpreted.c
index 4ce518a7..8e6d73e1 100644
--- a/src/qcommon/vm_interpreted.c
+++ b/src/qcommon/vm_interpreted.c
@@ -885,7 +885,7 @@ nextInstruction2:
((float *) opStack)[opStackOfs] = (float) opStack[opStackOfs];
goto nextInstruction;
case OP_CVFI:
- opStack[opStackOfs] = (int) ((float *) opStack)[opStackOfs];
+ opStack[opStackOfs] = Q_ftol(((float *) opStack)[opStackOfs]);
goto nextInstruction;
case OP_SEX8:
opStack[opStackOfs] = (signed char) opStack[opStackOfs];