bit-arrays: rename clean-up to zero-end-bits

db4
Doug Coleman 2015-06-05 21:09:57 -07:00
parent 808342076d
commit fbaa38be6d
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ TUPLE: bit-array
[ [ length bits>cells ] keep ] dip swap underlying>>
'[ [ _ _ ] dip 4 * set-alien-unsigned-4 ] each-integer ; inline
: clean-up ( bit-array -- bit-array )
: zero-end-bits ( bit-array -- bit-array )
! Zero bits after the end.
dup underlying>> [ ] [
[
@ -83,7 +83,7 @@ M: bit-array equal?
M: bit-array resize
dupd [ bits>bytes ] [ underlying>> ] bi*
resize-byte-array bit-array boa clean-up ; inline
resize-byte-array bit-array boa zero-end-bits ; inline
M: bit-array byte-length length bits>bytes ; inline