Browse Source

Remove test code

gingerBill 7 years ago
parent
commit
eb274cf316
2 changed files with 1 additions and 2 deletions
  1. 0 1
      core/runtime/core.odin
  2. 1 1
      src/checker.cpp

+ 0 - 1
core/runtime/core.odin

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

+ 1 - 1
src/checker.cpp

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