]> gitweb.factorcode.org Git - factor.git/commitdiff
math: fix stack effect declaration for the neg? generic
authorAlexander Iljin <ajsoft@yandex.ru>
Thu, 28 Jul 2016 17:41:02 +0000 (20:41 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 30 Jul 2016 16:25:30 +0000 (09:25 -0700)
core/math/math.factor

index b23e129946579b98699b27dd2a8de528529835e7..62aadea546232d24723b00b6cf45fdd06c2a2c43 100644 (file)
@@ -147,7 +147,7 @@ ERROR: log2-expects-positive x ;
 : even? ( n -- ? ) 1 bitand zero? ; inline
 : odd? ( n -- ? ) 1 bitand 1 number= ; inline
 
-GENERIC: neg? ( x -- -x )
+GENERIC: neg? ( x -- ? )
 
 : if-zero ( ..a n quot1: ( ..a -- ..b ) quot2: ( ..a n -- ..b ) -- ..b )
     [ dup zero? ] [ [ drop ] prepose ] [ ] tri* if ; inline