mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
make slice.as_ptr return [^]E
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user