Fix typo.
authorChris Hanson <org/chris-hanson/cph>
Sat, 20 Jun 2009 07:50:19 +0000 (00:50 -0700)
committerChris Hanson <org/chris-hanson/cph>
Sat, 20 Jun 2009 07:50:19 +0000 (00:50 -0700)
src/microcode/cmpintmd/svm1.c

index 1f101f66307eb41e09d2037b826471e95ae6a04f..5ec801c677893ea92dc01a7b94c486574a743a9d 100644 (file)
@@ -287,11 +287,11 @@ compiled_closure_entry_to_target (insn_t * entry)
 {
   unsigned int index = (read_u16 (entry + 1));
   insn_t * block
-    = (entry + ((index * CLOSURE_ENTRY_SIZE) + CLOSURE_COUNT_SIZE));
+    = (entry - (CLOSURE_COUNT_SIZE + (index * CLOSURE_ENTRY_SIZE)));
   unsigned int count = (read_u16 (block));
   SCHEME_OBJECT * targets
     = (skip_compiled_closure_padding
-       (block + CLOSURE_COUNT_SIZE + (count * CLOSURE_ENTRY_SIZE)));
+       (block + (CLOSURE_COUNT_SIZE + (count * CLOSURE_ENTRY_SIZE))));
   return (targets[index]);
 }
 \f