[Scummvm-cvs-logs] CVS: scummvm/bs2 interpreter.cpp,1.8,1.9

Max Horn fingolfin at users.sourceforge.net
Sat Sep 13 05:09:04 CEST 2003


Update of /cvsroot/scummvm/scummvm/bs2
In directory sc8-pr-cvs1:/tmp/cvs-serv12518

Modified Files:
	interpreter.cpp 
Log Message:
cleanup

Index: interpreter.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/bs2/interpreter.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- interpreter.cpp	13 Sep 2003 12:03:29 -0000	1.8
+++ interpreter.cpp	13 Sep 2003 12:08:17 -0000	1.9
@@ -417,7 +417,7 @@
 				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 @@
 			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;
 





More information about the Scummvm-git-logs mailing list