]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: build fix
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 9 Oct 2009 10:12:28 +0000 (05:12 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 9 Oct 2009 10:12:28 +0000 (05:12 -0500)
vm/image.cpp
vm/vm.hpp

index c8a469fbbcbab848ed7745fe612512aa29c0a881..cef318fc6aef9d2844072e3c77c685701db6fa87 100755 (executable)
@@ -145,12 +145,12 @@ void factor_vm::primitive_save_image_and_exit()
                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;
 
-       *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)
index 98199a0dbc1919c409e0f14384bafef3ab6ecd3d..c89268f9b6059d83322f7ee531ecdf21a31947e1 100755 (executable)
--- a/vm/vm.hpp
+++ b/vm/vm.hpp
@@ -547,7 +547,7 @@ struct factor_vm
        bool save_image(const vm_char *filename);
        void primitive_save_image();
        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);
        void fixup_word(word *word, cell code_relocation_base);
        void fixup_quotation(quotation *quot, cell code_relocation_base);