From f9c28dca49481528fb49d1316811b2312e28847c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 13 Sep 2003 12:08:17 +0000 Subject: cleanup svn-id: r10218 --- sword2/interpreter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sword2/interpreter.cpp b/sword2/interpreter.cpp index 9958260584..dfaaeb58e6 100644 --- a/sword2/interpreter.cpp +++ b/sword2/interpreter.cpp @@ -417,7 +417,7 @@ int RunScript ( char * scriptData , char * objectData , uint32 *offset ) Read16ip(parameter) POPOFFSTACK ( value ); DEBUG2("Pop %d into var %d",value,parameter); - *((int *)(variables+parameter)) = value; + *((int32 *)(variables+parameter)) = value; break; case CP_CALL_MCODE: // 4 Call an mcode routine @@ -518,14 +518,14 @@ int RunScript ( char * scriptData , char * objectData , uint32 *offset ) case CP_ADDNPOP_LOCAL_VAR32: // 10 Read16ip(parameter) POPOFFSTACK ( value ); - *((int *)(variables+parameter)) = *(int32 *)(variables+parameter) + value; + *((int32 *)(variables+parameter)) += value; DEBUG3("+= %d into var %d->%d",value,parameter,*(int32 *)(variables+parameter)); break; case CP_SUBNPOP_LOCAL_VAR32: // 11 Read16ip(parameter) POPOFFSTACK ( value ); - *((int *)(variables+parameter)) = *(int32 *)(variables+parameter) - value; + *((int32 *)(variables+parameter)) -= value; DEBUG3("-= %d into var %d->%d",value,parameter,*(int32 *)(variables+parameter)); break; -- cgit v1.2.3