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:
parent
a6ec6e23bc
commit
735c78fc6d
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user