aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-04-04 17:04:05 +0100
committergingerBill <bill@gingerbill.org>2022-04-04 17:04:05 +0100
commit2289b7a33de6e265a8d0c4c497a2afa4c2b140e2 (patch)
tree43ce9ddc69a0eb2d8cbb3b96c8224487b086adc1
parentd10d54710ce34ad9f474392a209fd731a686cfee (diff)
Remove `#caller_location` from certain calls in `core:container/small_array`
-rw-r--r--core/container/small_array/small_array.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/container/small_array/small_array.odin b/core/container/small_array/small_array.odin
index d09e0c81c..5cd421c84 100644
--- a/core/container/small_array/small_array.odin
+++ b/core/container/small_array/small_array.odin
@@ -25,14 +25,14 @@ slice :: proc(a: ^$A/Small_Array($N, $T)) -> []T {
}
-get :: proc(a: $A/Small_Array($N, $T), index: int, loc := #caller_location) -> T {
+get :: proc(a: $A/Small_Array($N, $T), index: int) -> T {
return a.data[index]
}
-get_ptr :: proc(a: $A/Small_Array($N, $T), index: int, loc := #caller_location) -> ^T {
+get_ptr :: proc(a: ^$A/Small_Array($N, $T), index: int) -> ^T {
return &a.data[index]
}
-set :: proc(a: ^$A/Small_Array($N, $T), index: int, item: T, loc := #caller_location) {
+set :: proc(a: ^$A/Small_Array($N, $T), index: int, item: T) {
a.data[index] = item
}