From 5d8925bbaffaf95c49cdcf363b536acc9f7b9f40 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Thu, 16 Jun 2011 01:26:17 +0000 Subject: Use Q_ftol for vm_interpreted --- src/qcommon/vm_interpreted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- cgit