diff options
author | Max Horn | 2009-05-03 22:45:13 +0000 |
---|---|---|
committer | Max Horn | 2009-05-03 22:45:13 +0000 |
commit | f108a31ad71404f115de776366dae985dd8e4f48 (patch) | |
tree | 2b61533413daf0fb252b9cbddf0d5c272d1f1b07 /engines/sci/engine/gc.cpp | |
parent | c7a5a17acfa1353c221be8c09576503b395c29ef (diff) | |
download | scummvm-rg350-f108a31ad71404f115de776366dae985dd8e4f48.tar.gz scummvm-rg350-f108a31ad71404f115de776366dae985dd8e4f48.tar.bz2 scummvm-rg350-f108a31ad71404f115de776366dae985dd8e4f48.zip |
SCI: Made SegManager::heap_size unsigned
svn-id: r40290
Diffstat (limited to 'engines/sci/engine/gc.cpp')
-rw-r--r-- | engines/sci/engine/gc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/gc.cpp b/engines/sci/engine/gc.cpp index abdcd9f26f..474d3fbc5a 100644 --- a/engines/sci/engine/gc.cpp +++ b/engines/sci/engine/gc.cpp @@ -78,7 +78,7 @@ reg_t_hash_map *find_all_used_references(EngineState *s) { Common::Array<SegInterface *> interfaces; reg_t_hash_map *normal_map = NULL; WorklistManager wm; - int i; + uint i; interfaces.resize(sm->heap_size); for (i = 1; i < sm->heap_size; i++) @@ -105,7 +105,7 @@ reg_t_hash_map *find_all_used_references(EngineState *s) { #endif // Init: Execution Stack - for (i = 0; i <= s->execution_stack_pos; i++) { + for (i = 0; (int)i <= s->execution_stack_pos; i++) { ExecStack &es = s->_executionStack[i]; if (es.type != EXEC_STACK_TYPE_KERNEL) { @@ -191,7 +191,7 @@ void free_unless_used(void *refcon, reg_t addr) { } void run_gc(EngineState *s) { - int seg_nr; + uint seg_nr; deallocator_t deallocator; SegManager *sm = s->seg_manager; |