X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fdebugger%2Fdebugger.factor;h=ce9496291c6ff94a4bfeb9b188087b8a48ec1006;hp=6c0985ce06d5a8d816faf78b23c4699b7d6efbc7;hb=3f3d57032bf29190e9bee12d168a4bce6d74653c;hpb=cd1bb8f4c8afba318249c7b756a45aa1c46ea51e diff --git a/basis/debugger/debugger.factor b/basis/debugger/debugger.factor index 6c0985ce06..ce9496291c 100644 --- a/basis/debugger/debugger.factor +++ b/basis/debugger/debugger.factor @@ -36,7 +36,7 @@ M: string error. print ; error-continuation get name>> assoc-stack ; : :res ( n -- * ) - 1- restarts get-global nth f restarts set-global restart ; + 1 - restarts get-global nth f restarts set-global restart ; : :1 ( -- * ) 1 :res ; : :2 ( -- * ) 2 :res ; @@ -44,7 +44,7 @@ M: string error. print ; : restart. ( restart n -- ) [ - 1+ dup 3 <= [ ":" % # " " % ] [ # " :res " % ] if + 1 + dup 3 <= [ ":" % # " " % ] [ # " :res " % ] if name>> % ] "" make print ; @@ -92,7 +92,7 @@ HOOK: signal-error. os ( obj -- ) : array-size-error. ( obj -- ) "Invalid array size: " write dup third . - "Maximum: " write fourth 1- . ; + "Maximum: " write fourth 1 - . ; : c-string-error. ( obj -- ) "Cannot convert to C string: " write third . ;