浏览代码

Merge pull request #2534 from Tetralux/fix-append-nothing-loc

[runtime] Pass along #caller_location in append_nothing()
gingerBill 2 年之前
父节点
当前提交
535c64c318
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 }