diff options
Diffstat (limited to 'engines/glk/frotz/processor.cpp')
-rw-r--r-- | engines/glk/frotz/processor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/glk/frotz/processor.cpp b/engines/glk/frotz/processor.cpp index b9631c85e4..eebcc606d2 100644 --- a/engines/glk/frotz/processor.cpp +++ b/engines/glk/frotz/processor.cpp @@ -293,7 +293,7 @@ void Processor::interpret() { } void Processor::call(zword routine, int argc, zword *args, int ct) { - long pc; + uint32 pc; zword value; zbyte count; int i; @@ -357,7 +357,7 @@ void Processor::call(zword routine, int argc, zword *args, int ct) { } void Processor::ret(zword value) { - long pc; + offset_t pc; int ct; if (_sp > _fp) @@ -369,7 +369,7 @@ void Processor::ret(zword value) { _frameCount--; _fp = _stack + 1 + *_sp++; pc = *_sp++; - pc = ((long)*_sp++ << 9) | pc; + pc = ((offset_t)*_sp++ << 9) | pc; SET_PC(pc); @@ -385,7 +385,7 @@ void Processor::ret(zword value) { } void Processor::branch(bool flag) { - long pc; + offset_t pc; zword offset; zbyte specifier; zbyte off1; @@ -539,12 +539,12 @@ void Processor::z_check_arg_count() { } void Processor::z_jump() { - long pc; + offset_t pc; GET_PC(pc); pc += (short)zargs[0] - 2; - if ((uint)pc >= story_size) + if (pc >= story_size) runtimeError(ERR_ILL_JUMP_ADDR); SET_PC(pc); |