X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fbreakpoint.c;h=3c99cc4146227c0974151e5fe11830bdf648375e;hb=7f1e94ae961a198e00daf281eb1dc858e5b2dcc7;hp=638b2e8a0fe28d125813a5ce89352be0b4842170;hpb=e6f4c7523aa628ece995ee01879d3fb90eed6d9f;p=sbcl.git diff --git a/src/runtime/breakpoint.c b/src/runtime/breakpoint.c index 638b2e8..3c99cc4 100644 --- a/src/runtime/breakpoint.c +++ b/src/runtime/breakpoint.c @@ -102,20 +102,20 @@ static long compute_offset(os_context_t *context, lispobj code) if (code == NIL) return 0; else { - unsigned long code_start; + uword_t code_start; struct code *codeptr = (struct code *)native_pointer(code); #ifdef LISP_FEATURE_HPPA - unsigned long pc = *os_context_pc_addr(context) & ~3; + uword_t pc = *os_context_pc_addr(context) & ~3; #else - unsigned long pc = *os_context_pc_addr(context); + uword_t pc = *os_context_pc_addr(context); #endif - code_start = (unsigned long)codeptr + code_start = (uword_t)codeptr + HeaderValue(codeptr->header)*sizeof(lispobj); if (pc < code_start) return 0; else { - unsigned long offset = pc - code_start; + uword_t offset = pc - code_start; if (offset >= (N_WORD_BYTES * fixnum_value(codeptr->code_size))) return 0; else