Commit eb086ca7 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fbyte_code): For relative gotos, force signed arithmetic.

parent da61a640
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment