vm: build fix

db4
Slava Pestov 2009-10-09 05:12:28 -05:00
parent b952977d53
commit ab9b462411
2 changed files with 4 additions and 4 deletions

View File

@ -145,12 +145,12 @@ void factor_vm::primitive_save_image_and_exit()
exit(1); exit(1);
} }
void factor_vm::data_fixup(cell *cell, cell data_relocation_base) void factor_vm::data_fixup(cell *handle, cell data_relocation_base)
{ {
if(immediate_p(*cell)) if(immediate_p(*handle))
return; return;
*cell += (data->tenured->start - data_relocation_base); *handle += (data->tenured->start - data_relocation_base);
} }
template<typename Type> void factor_vm::code_fixup(Type **handle, cell code_relocation_base) template<typename Type> void factor_vm::code_fixup(Type **handle, cell code_relocation_base)

View File

@ -547,7 +547,7 @@ struct factor_vm
bool save_image(const vm_char *filename); bool save_image(const vm_char *filename);
void primitive_save_image(); void primitive_save_image();
void primitive_save_image_and_exit(); void primitive_save_image_and_exit();
void data_fixup(cell *cell, cell data_relocation_base); void data_fixup(cell *handle, cell data_relocation_base);
template<typename Type> void code_fixup(Type **handle, cell code_relocation_base); template<typename Type> void code_fixup(Type **handle, cell code_relocation_base);
void fixup_word(word *word, cell code_relocation_base); void fixup_word(word *word, cell code_relocation_base);
void fixup_quotation(quotation *quot, cell code_relocation_base); void fixup_quotation(quotation *quot, cell code_relocation_base);