From eb086ca7485319721d1a7c8f2c54a2360fb0eab3 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 16 Aug 1996 19:08:24 +0000 Subject: (Fbyte_code): For relative gotos, force signed arithmetic. --- src/bytecode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bytecode.c') diff --git a/src/bytecode.c b/src/bytecode.c index 3221970cca..4fb6d86bb6 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; -- cgit v1.2.3