[Scummvm-cvs-logs] SF.net SVN: scummvm:[52082] scummvm/trunk/engines/sci/engine/vm.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Aug 14 10:44:29 CEST 2010


Revision: 52082
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52082&view=rev
Author:   lordhoto
Date:     2010-08-14 08:44:29 +0000 (Sat, 14 Aug 2010)

Log Message:
-----------
SCI: Silence shadowed variable warning of g++.

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/vm.cpp

Modified: scummvm/trunk/engines/sci/engine/vm.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/vm.cpp	2010-08-14 08:32:39 UTC (rev 52081)
+++ scummvm/trunk/engines/sci/engine/vm.cpp	2010-08-14 08:44:29 UTC (rev 52082)
@@ -1796,7 +1796,7 @@
 		case op_lagi: // 0x48 (72)
 		case op_lali: // 0x49 (73)
 		case op_lati: // 0x4a (74)
-		case op_lapi: // 0x4b (75)
+		case op_lapi: { // 0x4b (75)
 			// Load global, local, temp or param variable into the accumulator,
 			// using the accumulator as an additional index
 			var_type = opcode & 0x3; // Gets the variable type: g, l, t or p
@@ -1806,6 +1806,7 @@
 			var_number = opparams[0] + value;
 			s->r_acc = READ_VAR(var_type, var_number);
 			break;
+		}
 
 		case op_lsgi: // 0x4c (76)
 		case op_lsli: // 0x4d (77)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list