From 191223bb3c6872f952e97d44852823563b47a744 Mon Sep 17 00:00:00 2001 From: Andrea Piseri Date: Wed, 21 Dec 2022 21:58:01 +0100 Subject: [PATCH] Fix non-generic cast in core:slice.rotate_left --- 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 f5305f29e..595ec8e37 100644 --- a/core/slice/slice.odin +++ b/core/slice/slice.odin @@ -220,7 +220,7 @@ rotate_left :: proc(array: $T/[]$E, mid: int) { k := n - m // FIXME: (ap29600) this cast is a temporary fix for the compiler not matching // [^T] with $P/^$T - p := cast(^int)raw_data(array) + p := cast(^E)raw_data(array) ptr_rotate(m, ptr_add(p, m), k) } rotate_right :: proc(array: $T/[]$E, k: int) {