fix bitfield.v
parent
a6ec6e23bc
commit
735c78fc6d
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue