vm: turns out adding and subtracting are different

db4
Joe Groff 2011-10-25 17:50:09 -07:00
parent f284ac2b48
commit 7bd7d0234d
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ void factor_vm::dispatch_signal_handler(cell *sp, cell *pc, cell handler)
// Make a fake frame for the leaf procedure
cell leaf_word = find_word_for_address(this, *pc);
cell newsp = *sp + 4 * sizeof(cell);
cell newsp = *sp - 4 * sizeof(cell);
*(cell*)(newsp + 3*sizeof(cell)) = 4*sizeof(cell);
*(cell*)(newsp + 2*sizeof(cell)) = leaf_word;
*(cell*) newsp = *pc;