X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fparse.c;h=17b61b194770eec5b8366e255d7f2e3ad676bcd2;hb=6fa0ad323b5031017e62ee5d7e016eae2cf79efd;hp=4538a1b2d7073537766e8b7496a1e915eb7bd618;hpb=3358092524adbaecaa483d6510fb3d7031441ccb;p=sbcl.git diff --git a/src/runtime/parse.c b/src/runtime/parse.c index 4538a1b..17b61b1 100644 --- a/src/runtime/parse.c +++ b/src/runtime/parse.c @@ -9,10 +9,6 @@ * files for more information. */ -/* - * $Header$ - */ - #include #include #include @@ -240,20 +236,25 @@ static boolean lookup_symbol(char *name, lispobj *result) lispobj *headerptr; /* Search static space. */ - headerptr = static_space; - count = ((lispobj *) SymbolValue(STATIC_SPACE_FREE_POINTER) - - static_space); + headerptr = (lispobj *)STATIC_SPACE_START; + count = + (lispobj *)SymbolValue(STATIC_SPACE_FREE_POINTER) - + (lispobj *)STATIC_SPACE_START; if (search_for_symbol(name, &headerptr, &count)) { *result = (lispobj)headerptr | type_OtherPointer; return 1; } /* Search dynamic space. */ - headerptr = DYNAMIC_SPACE_START; + headerptr = (lispobj *)DYNAMIC_SPACE_START; #if !defined(ibmrt) && !defined(__i386__) - count = dynamic_space_free_pointer - DYNAMIC_SPACE_START; + count = + dynamic_space_free_pointer - + (lispobj *)DYNAMIC_SPACE_START; #else - count = (lispobj *)SymbolValue(ALLOCATION_POINTER) - DYNAMIC_SPACE_START; + count = + (lispobj *)SymbolValue(ALLOCATION_POINTER) - + (lispobj *)DYNAMIC_SPACE_START; #endif if (search_for_symbol(name, &headerptr, &count)) { *result = (lispobj)headerptr | type_OtherPointer;