diff options
author | Filippos Karapetis | 2009-02-15 14:52:51 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-02-15 14:52:51 +0000 |
commit | aa3f10b2fdabd123c08354131949f7920399df70 (patch) | |
tree | 84851d7e0eb756fa3b1c93c61aaacca8ee024f3d /engines/sci/engine/scriptdebug.cpp | |
parent | dee51a77b57bcebcb20bb14a8fe1314b9e194a55 (diff) | |
download | scummvm-rg350-aa3f10b2fdabd123c08354131949f7920399df70.tar.gz scummvm-rg350-aa3f10b2fdabd123c08354131949f7920399df70.tar.bz2 scummvm-rg350-aa3f10b2fdabd123c08354131949f7920399df70.zip |
Fixed compilation under MSVC, and silenced some more warnings
svn-id: r38247
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 73bfcf3a97..9014ca20d6 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -773,7 +773,7 @@ c_seginfo(state_t *s) sciprintf("[%04x] ", nr); _c_single_seg_info(s, s->seg_manager.heap[nr]); } - } else for (i = 0; i < s->seg_manager.heap_size; i++) + } else for (i = 0; i < (unsigned int) s->seg_manager.heap_size; i++) if (s->seg_manager.heap[i]) { sciprintf("[%04x] ", i); _c_single_seg_info(s, s->seg_manager.heap[i]); @@ -1573,7 +1573,7 @@ disassemble(state_t *s, reg_t pos, int print_bw_tag, int print_bytecode) while (stackframe > 0) { int argc = sb[- stackframe + 1].offset; const char *name = NULL; - reg_t called_obj_addr; + reg_t called_obj_addr = *p_objp; if (opcode == op_send) called_obj_addr = s->r_acc; |