]> gitweb.factorcode.org Git - factor.git/commitdiff
callstack.cpp: fix fat-fingered typo from undefined-symbol change
authorSlava Pestov <slava@factorcode.org>
Tue, 13 Sep 2011 06:15:00 +0000 (23:15 -0700)
committerSlava Pestov <slava@factorcode.org>
Tue, 13 Sep 2011 06:15:09 +0000 (23:15 -0700)
vm/callstack.cpp

index 5a7fbb8c03a225b4e4b9eff62cb5fa7aef2e80c5..a0bbae87099a748016ab76d9c82a025e3d010f69 100755 (executable)
@@ -129,8 +129,8 @@ void factor_vm::set_frame_offset(stack_frame *frame, cell offset)
 
 void factor_vm::scrub_return_address()
 {
-       stack_frame *frame = innermost_stack_frame(ctx->callstack_top,
-               ctx->callstack_bottom);
+       stack_frame *frame = innermost_stack_frame(ctx->callstack_bottom,
+               ctx->callstack_top);
        set_frame_offset(frame,0);
 }
 
@@ -214,15 +214,15 @@ void factor_vm::primitive_innermost_stack_frame_scan()
 
 void factor_vm::primitive_set_innermost_stack_frame_quot()
 {
-       data_root<callstack> callstack(ctx->pop(),this);
+       data_root<callstack> stack(ctx->pop(),this);
        data_root<quotation> quot(ctx->pop(),this);
 
-       callstack.untag_check(this);
+       stack.untag_check(this);
        quot.untag_check(this);
 
        jit_compile_quot(quot.value(),true);
 
-       stack_frame *inner = innermost_stack_frame(callstack->bottom(), callstack->top());
+       stack_frame *inner = innermost_stack_frame(stack->bottom(), stack->top());
        cell offset = frame_offset(inner);
        inner->entry_point = quot->entry_point;
        set_frame_offset(inner,offset);