X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Falloc.c;h=2e056b54f8c9be5bf976082a3a9c869e04de072c;hb=9b1fade83db8453b75b8c7380eb12ce41b5b889c;hp=0638ddc2015d7df7690b2af880224f869cbf4bfc;hpb=427cac784579a935a06b0d66bac63dbf9bf325a4;p=sbcl.git diff --git a/src/runtime/alloc.c b/src/runtime/alloc.c index 0638ddc..2e056b5 100644 --- a/src/runtime/alloc.c +++ b/src/runtime/alloc.c @@ -32,7 +32,7 @@ #define ALIGNED_SIZE(n) ((n) + LOWTAG_MASK) & ~LOWTAG_MASK #ifdef LISP_FEATURE_GENCGC -extern lispobj *alloc(int bytes); +extern lispobj *alloc(long bytes); #endif static lispobj * @@ -61,13 +61,13 @@ pa_alloc(int bytes) #ifdef LISP_FEATURE_STACK_GROWS_DOWNWARD_NOT_UPWARD #error "!C_STACK_IS_CONTROL_STACK and STACK_GROWS_DOWNWARD_NOT_UPWARD is not supported" #endif - *current_control_stack_pointer = result; + *current_control_stack_pointer = (lispobj) result; current_control_stack_pointer += 1; #endif do_pending_interrupt(); #ifndef LISP_FEATURE_C_STACK_IS_CONTROL_STACK current_control_stack_pointer -= 1; - result = *current_control_stack_pointer; + result = (lispobj *) *current_control_stack_pointer; #endif } #else