Remove test code

This commit is contained in:
gingerBill
2018-08-30 19:33:16 +01:00
parent aa542980ce
commit eb274cf316
2 changed files with 1 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);
}
}