aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/vm.cpp
diff options
context:
space:
mode:
authorMax Horn2009-03-12 03:26:58 +0000
committerMax Horn2009-03-12 03:26:58 +0000
commit6a2efdd36df220581cdbf0742910007bada5147b (patch)
treea8b04a81f37af7388cc2feb6982ad899264edffa /engines/sci/engine/vm.cpp
parent642bad22d8978ffdfcdd9efaea553f7bd5c7cc9c (diff)
downloadscummvm-rg350-6a2efdd36df220581cdbf0742910007bada5147b.tar.gz
scummvm-rg350-6a2efdd36df220581cdbf0742910007bada5147b.tar.bz2
scummvm-rg350-6a2efdd36df220581cdbf0742910007bada5147b.zip
SCI: cleanup
svn-id: r39353
Diffstat (limited to 'engines/sci/engine/vm.cpp')
-rw-r--r--engines/sci/engine/vm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index 515f3e46d4..424c7a8180 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -578,7 +578,7 @@ static void gc_countdown(EngineState *s) {
}
}
-static byte _fake_return_buffer[2] = {op_ret << 1, op_ret << 1};
+static const byte _fake_return_buffer[2] = {op_ret << 1, op_ret << 1};
void run_vm(EngineState *s, int restoring) {
reg_t *variables[4]; // global, local, temp, param, as immediate pointers
@@ -603,7 +603,7 @@ void run_vm(EngineState *s, int restoring) {
Script *local_script = script_locate_by_segment(s, xs->local_segment);
int old_execution_stack_base = s->execution_stack_base;
// Used to detect the stack bottom, for "physical" returns
- byte *code_buf = NULL; // (Avoid spurious warning)
+ const byte *code_buf = NULL; // (Avoid spurious warning)
if (!local_script) {
script_error(s, __FILE__, __LINE__, "Program Counter gone astray");