vm: fix some typos

db4
Slava Pestov 2009-11-27 22:54:24 -06:00
parent 333c7654ae
commit 9a79a6253c
1 changed files with 2 additions and 1 deletions

View File

@ -183,7 +183,7 @@ struct code_block_updater {
array *literals = (parent->to_boolean(compiled->literals)
? untag<array>(compiled->literals) : NULL);
cell old_offset = (cell)compiled - code_offset;
cell old_offset = (cell)rel.rel_offset() + (cell)compiled->xt() - code_offset;
switch(type)
{
@ -212,6 +212,7 @@ struct code_block_updater {
break;
case RT_UNTAGGED:
op.store_value(untag_fixnum(array_nth(literals,index)));
break;
case RT_MEGAMORPHIC_CACHE_HITS:
op.store_value((cell)&parent->dispatch_stats.megamorphic_cache_hits);
break;