1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fix bitfield.v

This commit is contained in:
Alexander Medvednikov 2019-09-09 02:38:15 +03:00
parent a6ec6e23bc
commit 735c78fc6d

View File

@ -487,7 +487,7 @@ pub fn (instance mut BitField) resize(new_size int) {
}
instance.field = field.clone()
instance.size = new_size
if size < old_size && size % SLOT_SIZE != 0 {
if new_size < old_size && new_size % SLOT_SIZE != 0 {
cleartail(mut instance)
}
}