From dbf42d2469eec3980c6525c784aa6e594f49565e Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 28 Dec 2021 14:16:27 +0000 Subject: [PATCH] make `slice.as_ptr` return `[^]E` --- core/slice/slice.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/slice/slice.odin b/core/slice/slice.odin index a82c5fa96..c06e796ce 100644 --- a/core/slice/slice.odin +++ b/core/slice/slice.odin @@ -273,7 +273,7 @@ get_ptr :: proc(array: $T/[]$E, index: int) -> (value: ^E, ok: bool) { return } -as_ptr :: proc(array: $T/[]$E) -> ^E { +as_ptr :: proc(array: $T/[]$E) -> [^]E { return raw_data(array) }