aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1996-08-16 19:08:24 +0000
committerRichard M. Stallman <[email protected]>1996-08-16 19:08:24 +0000
commiteb086ca7485319721d1a7c8f2c54a2360fb0eab3 (patch)
tree0055bba90c8e0b9575584a4a6ee45a80eb03ba6f /src/bytecode.c
parentda61a64091aa869699b8d1054263bc2c57546a99 (diff)
(Fbyte_code): For relative gotos, force signed arithmetic.
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c6
1 files changed, 3 insertions, 3 deletions
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;