]> gitweb.factorcode.org Git - factor.git/commitdiff
stack-checker.row-polymorphism: minor cleanup
authorSlava Pestov <slava@factorcode.org>
Wed, 23 Jun 2010 02:29:24 +0000 (22:29 -0400)
committerSlava Pestov <slava@factorcode.org>
Wed, 23 Jun 2010 02:35:55 +0000 (22:35 -0400)
basis/stack-checker/row-polymorphism/row-polymorphism.factor

index f7419b116da39c26c639229a5f128cfed2b85170..38b25bf3f8b3b38ae2b53c972fc315c9e113e901 100644 (file)
@@ -16,8 +16,8 @@ IN: stack-checker.row-polymorphism
 
 :: (effect-here) ( inner-d old-meta-d-length old-input-count -- effect )
     old-meta-d-length inner-d - input-count get old-input-count - +
-    terminated? get [ 0 ] [ meta-d length inner-d - ] if
-    [ "x" <array> ] bi@ terminated? get <terminated-effect> ; inline
+    terminated? get [ [ 0 ] [ meta-d length inner-d - ] if [ "x" <array> ] bi@ ] keep
+    <terminated-effect> ; inline
 
 : with-effect-here ( quot -- effect )
     meta-d length input-count get