hash-sets: use >= in hash-large?.
parent
260abd3d7c
commit
fef1b2fb00
|
@ -68,8 +68,8 @@ TUPLE: hash-set
|
|||
[ (adjoin) drop ] curry each ; inline
|
||||
|
||||
: hash-large? ( hash -- ? )
|
||||
[ count>> 3 fixnum*fast 1 fixnum+fast ]
|
||||
[ array>> length>> 1 fixnum-shift-fast ] bi fixnum> ; inline
|
||||
[ count>> 3 fixnum*fast ]
|
||||
[ array>> length>> 1 fixnum-shift-fast ] bi fixnum>= ; inline
|
||||
|
||||
: each-member ( array quot: ( elt -- ) -- )
|
||||
[ if ] curry [ dup tombstone? [ drop ] ] prepose each ; inline
|
||||
|
|
Loading…
Reference in New Issue