mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
fix bitfield.v
This commit is contained in:
parent
a6ec6e23bc
commit
735c78fc6d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue