]> gitweb.factorcode.org Git - factor.git/commitdiff
terminfo: probably fix a bug where 0xfeff should be ignored also?
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 26 Apr 2013 15:55:57 +0000 (08:55 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 26 Apr 2013 15:55:57 +0000 (08:55 -0700)
extra/terminfo/terminfo.factor

index 1c494d082f8be6593e2927184e5b7c5d82873863..3ba32d1f833050e439317704234178b04d82894f 100644 (file)
@@ -36,7 +36,7 @@ C: <terminfo-header> terminfo-header
     boolean-bytes>> read [ 1 = ] { } map-as ;
 
 : read-shorts ( n -- seq' )
-    2 * read 2 <groups> [ le> dup 6553= [ drop f ] when ] map ;
+    2 * read 2 <groups> [ le> dup 65534 >= [ drop f ] when ] map ;
 
 : align-even-bytes ( header -- )
     [ names-bytes>> ] [ boolean-bytes>> ] bi + odd?