]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix compile error in images.jpeg
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 1 Oct 2010 06:40:41 +0000 (01:40 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 1 Oct 2010 06:41:26 +0000 (01:41 -0500)
basis/images/jpeg/jpeg.factor

index 7da9f6fc09a1a5f126f633c3431ded1a0575a420..227aab21cd66b123ee9e86ad14473112299ef6e0 100644 (file)
@@ -121,16 +121,14 @@ TUPLE: jpeg-color-info
 
 : decode-huff-table ( chunk -- )
     data>> [ binary <byte-reader> ] [ length ] bi limit-stream [
+        [ input-stream get stream>> [ count>> ] [ limit>> ] bi < ]
         [
-            [ input-stream get stream>> [ count>> ] [ limit>> ] bi < ]
-            [
-                read4/4 swap 2 * +
-                16 read
-                dup [ ] [ + ] map-reduce read
-                binary [ [ read [ B{ } ] unless* ] { } map-as ] with-byte-reader
-                swap jpeg> huff-tables>> set-nth
-            ] while
-        ] with-input-stream*
+            read4/4 swap 2 * +
+            16 read
+            dup [ ] [ + ] map-reduce read
+            binary [ [ read [ B{ } ] unless* ] { } map-as ] with-byte-reader
+            swap jpeg> huff-tables>> set-nth
+        ] while
     ] stream-throw-on-eof ;
 
 : decode-scan ( chunk -- )