From: Richard M. Stallman Date: Fri, 16 Aug 1996 19:08:24 +0000 (+0000) Subject: (Fbyte_code): For relative gotos, force signed arithmetic. X-Git-Tag: emacs-20.1~4071 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eb086ca7485319721d1a7c8f2c54a2360fb0eab3;p=emacs.git (Fbyte_code): For relative gotos, force signed arithmetic. --- diff --git a/src/bytecode.c b/src/bytecode.c index 3221970ccac..4fb6d86bb69 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -475,14 +475,14 @@ If the third argument is incorrect, Emacs may crash.") case BRgoto: QUIT; - pc += *pc - 127; + pc += (int) *pc - 127; break; case BRgotoifnil: if (NILP (POP)) { QUIT; - pc += *pc - 128; + pc += (int) *pc - 128; } pc++; break; @@ -491,7 +491,7 @@ If the third argument is incorrect, Emacs may crash.") if (!NILP (POP)) { QUIT; - pc += *pc - 128; + pc += (int) *pc - 128; } pc++; break;