mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
Fix delayed assert collection
This commit is contained in:
@@ -54,7 +54,10 @@ gb_inline void array_init(Array<T> *array, gbAllocator const &a, isize count) {
|
||||
template <typename T>
|
||||
gb_inline void array_init(Array<T> *array, gbAllocator const &a, isize count, isize capacity) {
|
||||
array->allocator = a;
|
||||
array->data = gb_alloc_array(a, T, capacity);
|
||||
array->data = nullptr;
|
||||
if (capacity > 0) {
|
||||
array->data = gb_alloc_array(a, T, capacity);
|
||||
}
|
||||
array->count = count;
|
||||
array->capacity = capacity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user