fix bitfield.v

pull/1900/head
Alexander Medvednikov 2019-09-09 02:38:15 +03:00
parent a6ec6e23bc
commit 735c78fc6d
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ pub fn (instance mut BitField) resize(new_size int) {
} }
instance.field = field.clone() instance.field = field.clone()
instance.size = new_size 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) cleartail(mut instance)
} }
} }