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

[runtime] Pass along #caller_location in append_nothing()
This commit is contained in:
gingerBill
2023-05-18 11:23:46 +01:00
committed by GitHub

View File

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