math: fix stack effect declaration for the neg? generic
parent
1aded9abdd
commit
1cec145e46
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue