projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
125c0e6
)
Fix typo.
author
Chris Hanson
<org/chris-hanson/cph>
Sat, 20 Jun 2009 07:50:19 +0000
(
00:50
-0700)
committer
Chris Hanson
<org/chris-hanson/cph>
Sat, 20 Jun 2009 07:50:19 +0000
(
00:50
-0700)
src/microcode/cmpintmd/svm1.c
patch
|
blob
|
history
diff --git
a/src/microcode/cmpintmd/svm1.c
b/src/microcode/cmpintmd/svm1.c
index 1f101f66307eb41e09d2037b826471e95ae6a04f..5ec801c677893ea92dc01a7b94c486574a743a9d 100644
(file)
--- a/
src/microcode/cmpintmd/svm1.c
+++ b/
src/microcode/cmpintmd/svm1.c
@@
-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