changeset 15873:77950cb46314

(Fbyte_code): For relative gotos, force signed arithmetic.
author Richard M. Stallman <rms@gnu.org>
date Fri, 16 Aug 1996 19:08:24 +0000
parents 244a4779d1b5
children 48c181ba52a8
files src/bytecode.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/bytecode.c	Fri Aug 16 17:21:31 1996 +0000
+++ b/src/bytecode.c	Fri Aug 16 19:08:24 1996 +0000
@@ -475,14 +475,14 @@
 
 	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 (!NILP (POP))
 	    {
 	      QUIT;
-	      pc += *pc - 128;
+	      pc += (int) *pc - 128;
 	    }
 	  pc++;
 	  break;