mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 12:30:28 +00:00
Reset the xar freelist iterators' index to 0 for easy reuse
This commit is contained in:
@@ -136,6 +136,7 @@ freelist_iterate_by_val :: proc(it: ^Freelist_Iterator($T, $SHIFT)) -> (val: T,
|
||||
}
|
||||
it.idx += 1
|
||||
}
|
||||
it.idx = 0
|
||||
return
|
||||
}
|
||||
|
||||
@@ -150,5 +151,6 @@ freelist_iterate_by_ptr :: proc(it: ^Freelist_Iterator($T, $SHIFT)) -> (val: ^T,
|
||||
}
|
||||
it.idx += 1
|
||||
}
|
||||
it.idx = 0
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user