From 2289b7a33de6e265a8d0c4c497a2afa4c2b140e2 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 4 Apr 2022 17:04:05 +0100 Subject: [PATCH] Remove `#caller_location` from certain calls in `core:container/small_array` --- core/container/small_array/small_array.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/container/small_array/small_array.odin b/core/container/small_array/small_array.odin index d09e0c81c14..5cd421c8498 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 }