X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fcompression%2Frun-length%2Frun-length.factor;h=deaed9e947a7b0758096ae98122030968a1976a0;hp=ce25cd6a63ad2c215bd69ce867c420ac0d0c306d;hb=943596575ad294c074dfa381b70af74dba5992b1;hpb=e738c7206c32bd9b76f3cee31e950835e1b1ee24 diff --git a/basis/compression/run-length/run-length.factor b/basis/compression/run-length/run-length.factor index ce25cd6a63..deaed9e947 100644 --- a/basis/compression/run-length/run-length.factor +++ b/basis/compression/run-length/run-length.factor @@ -9,7 +9,7 @@ IN: compression.run-length 2 group [ first2 ] map B{ } concat-as ; : 8hi-lo ( byte -- hi lo ) - [ HEX: f0 bitand -4 shift ] [ HEX: f bitand ] bi ; inline + [ 0xf0 bitand -4 shift ] [ 0xf bitand ] bi ; inline :: run-length-uncompress-bitmap4 ( byte-array m n -- byte-array' ) byte-array :> sp @@ -21,7 +21,7 @@ IN: compression.run-length [ ! i j [ number>string ] bi@ " " glue . sp next dup 0 = [ - sp next dup HEX: 03 HEX: ff between? [ + sp next dup 0x03 0xff between? [ nip [ sp ] dip dup odd? [ 1 + take-n but-last ] [ take-n ] if [ j matrix i swap nth copy ] [ length j + j! ] bi @@ -53,7 +53,7 @@ IN: compression.run-length [ ! i j [ number>string ] bi@ " " glue . sp next dup 0 = [ - sp next dup HEX: 03 HEX: ff between? [ + sp next dup 0x03 0xff between? [ nip [ sp ] dip dup odd? [ 1 + take-n but-last ] [ take-n ] if [ j matrix i swap nth copy ] [ length j + j! ] bi