mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 13:00:28 +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 array.allocator.procedure == nil {
|
||||
os.write_string(os.stdout, "HERE\n");
|
||||
array.allocator = context.allocator;
|
||||
}
|
||||
assert(array.allocator.procedure != nil);
|
||||
|
||||
@@ -33,7 +33,7 @@ void scope_reset(Scope *scope) {
|
||||
|
||||
void scope_reserve(Scope *scope, isize capacity) {
|
||||
isize cap = 2*capacity;
|
||||
if (cap > scope->elements.hashes.capacity) {
|
||||
if (cap > scope->elements.hashes.count) {
|
||||
map_rehash(&scope->elements, capacity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user