mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix non-generic cast in core:slice.rotate_left
This commit is contained in:
@@ -220,7 +220,7 @@ rotate_left :: proc(array: $T/[]$E, mid: int) {
|
|||||||
k := n - m
|
k := n - m
|
||||||
// FIXME: (ap29600) this cast is a temporary fix for the compiler not matching
|
// FIXME: (ap29600) this cast is a temporary fix for the compiler not matching
|
||||||
// [^T] with $P/^$T
|
// [^T] with $P/^$T
|
||||||
p := cast(^int)raw_data(array)
|
p := cast(^E)raw_data(array)
|
||||||
ptr_rotate(m, ptr_add(p, m), k)
|
ptr_rotate(m, ptr_add(p, m), k)
|
||||||
}
|
}
|
||||||
rotate_right :: proc(array: $T/[]$E, k: int) {
|
rotate_right :: proc(array: $T/[]$E, k: int) {
|
||||||
|
|||||||
Reference in New Issue
Block a user