Browse Source

[runtime] Pass along #caller_location in append_nothing()

Tetralux 2 years ago
parent
commit
1c5ce75d9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/runtime/core_builtin.odin

+ 1 - 1
core/runtime/core_builtin.odin

@@ -401,7 +401,7 @@ append_nothing :: proc(array: ^$T/[dynamic]$E, loc := #caller_location) -> int {
 		return 0
 	}
 	prev_len := len(array)
-	resize(array, len(array)+1)
+	resize(array, len(array)+1, loc)
 	return len(array)-prev_len
 }