mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Remove test code
This commit is contained in:
@@ -598,7 +598,6 @@ __dynamic_array_reserve :: proc(array_: rawptr, elem_size, elem_align: int, cap:
|
|||||||
if cap <= array.cap do return true;
|
if cap <= array.cap do return true;
|
||||||
|
|
||||||
if array.allocator.procedure == nil {
|
if array.allocator.procedure == nil {
|
||||||
os.write_string(os.stdout, "HERE\n");
|
|
||||||
array.allocator = context.allocator;
|
array.allocator = context.allocator;
|
||||||
}
|
}
|
||||||
assert(array.allocator.procedure != nil);
|
assert(array.allocator.procedure != nil);
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ void scope_reset(Scope *scope) {
|
|||||||
|
|
||||||
void scope_reserve(Scope *scope, isize capacity) {
|
void scope_reserve(Scope *scope, isize capacity) {
|
||||||
isize cap = 2*capacity;
|
isize cap = 2*capacity;
|
||||||
if (cap > scope->elements.hashes.capacity) {
|
if (cap > scope->elements.hashes.count) {
|
||||||
map_rehash(&scope->elements, capacity);
|
map_rehash(&scope->elements, capacity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user