]> gitweb.factorcode.org Git - factor.git/commitdiff
strings.parser: short -> bound
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 29 Jul 2022 17:47:48 +0000 (12:47 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 31 Jul 2022 18:24:58 +0000 (13:24 -0500)
core/strings/parser/parser.factor

index 2b8216dd556ceb86f236e8855c8cea3ef69120e0..8cd30f37f4305251657f151f8113102bd4ead268 100644 (file)
@@ -36,7 +36,7 @@ name>char-hook [
     2 cut-slice [ hex> ] dip ;
 
 : oct-escape ( str -- ch/f str' )
-    dup 3 short head-slice [
+    dup 3 bound head-slice [
         [ CHAR: 0 CHAR: 7 between? not ] find drop
     ] keep '[ _ length ] unless* [ f ] when-zero
     [ cut-slice [ oct> ] dip ] [ f swap ] if* ;