From 1dcc6b79c9ba6d90cc6a17a26ee1c681b48e21ec Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 15 Feb 2009 10:29:34 +0000 Subject: Silenced some more warnings svn-id: r38221 --- engines/sci/engine/scriptdebug.c | 10 +++++----- engines/sci/sfx/iterator.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/engine/scriptdebug.c b/engines/sci/engine/scriptdebug.c index 285646f70c..a2a1d2427d 100644 --- a/engines/sci/engine/scriptdebug.c +++ b/engines/sci/engine/scriptdebug.c @@ -729,7 +729,7 @@ c_vr(state_t *s) int c_segkill(state_t *s) { - int i = 0; + unsigned int i = 0; while (i < cmd_paramlength) { int nr = cmd_params[i++].val; @@ -759,7 +759,7 @@ c_mousepos(state_t *s) int c_seginfo(state_t *s) { - int i = 0; + unsigned int i = 0; if (cmd_paramlength) { while (i < cmd_paramlength) { @@ -2424,7 +2424,7 @@ c_disasm_addr(state_t *s) int op_count = 1; int do_bwc = 0; int do_bytes = 0; - int i; + unsigned int i; int invalid = 0; int size; sm_dereference(&s->seg_manager, vpc, &size); @@ -2571,7 +2571,7 @@ c_send(state_t *s) reg_t object = cmd_params[0].reg; char *selector_name = cmd_params[1].str; stack_ptr_t stackframe = s->execution_stack->sp; - int i, selector_id, selector_type; + unsigned int i, selector_id, selector_type; exec_stack_t *xstack; object_t *o; reg_t *vptr; @@ -2728,7 +2728,7 @@ static int c_handle_config_update(const generic_config_flag_t *flags, int flags_nr, const char *subsystem, int *active_options_p) { - int i; + unsigned int i; if (!_debugstate_valid) { sciprintf("Not in debug state\n"); diff --git a/engines/sci/sfx/iterator.c b/engines/sci/sfx/iterator.c index 2d9008a842..78bbdf816b 100644 --- a/engines/sci/sfx/iterator.c +++ b/engines/sci/sfx/iterator.c @@ -833,7 +833,7 @@ _sci1_song_init(sci1_song_iterator_t *self) offset++; while (SONGDATA(0) != 0xff) { /* End of list? */ - int track_offset; + unsigned int track_offset; int end; offset += 2; -- cgit v1.2.3