X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fbreakpoint.c;h=5cada3e5916e47a301399ccc41f42716a8fea923;hb=14bf7776995b50c0ea63f7093284fa698f655023;hp=a3256935704aa88e1304a98e99e238a06535f915;hpb=8974d768a634343d958de35e9ce90cec235590a3;p=sbcl.git diff --git a/src/runtime/breakpoint.c b/src/runtime/breakpoint.c index a325693..5cada3e 100644 --- a/src/runtime/breakpoint.c +++ b/src/runtime/breakpoint.c @@ -116,7 +116,7 @@ static long compute_offset(os_context_t *context, lispobj code) return 0; else { unsigned long offset = pc - code_start; - if (offset >= codeptr->code_size) + if (offset >= (N_WORD_BYTES * fixnum_value(codeptr->code_size))) return 0; else return make_fixnum(offset);