mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 11:09:25 -04:00
Improve usage of file_id
This commit is contained in:
1 parent
f55fc4cd08
commit
e814a3693f
9 files changed
+75
-30
No files matched your search
+3
-1
@@ -24,7 +24,9 @@ template <typename T> void ptr_set_reserve(PtrSet<T> *h, isize cap);
|
||||
|
||||
template <typename T>
|
||||
void ptr_set_init(PtrSet<T> *s, gbAllocator a, isize capacity) {
|
||||
capacity = next_pow2_isize(gb_max(16, capacity));
|
||||
if (capacity != 0) {
|
||||
capacity = next_pow2_isize(gb_max(16, capacity));
|
||||
}
|
||||
|
||||
slice_init(&s->hashes, a, capacity);
|
||||
array_init(&s->entries, a, 0, capacity);
|
||||
|
||||
Reference in new issue
Block a user