From 10004b82f7133129a2ce48b39e1cf3ebf3707fe4 Mon Sep 17 00:00:00 2001 From: dzaima Date: Wed, 7 Sep 2022 19:53:00 +0300 Subject: [PATCH] =?UTF-8?q?make=201.2=E2=80=BF3.4=E2=8A=8F=E2=89=8D=CB=98"?= =?UTF-8?q?abcd"=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/select.c b/src/builtins/select.c index b6edc28d..62a3f962 100644 --- a/src/builtins/select.c +++ b/src/builtins/select.c @@ -172,7 +172,7 @@ B select_c2(B t, B w, B x) { for (usz i = 0; i < wia; i++) { B cw = GetU(w, i); if (!isNum(cw)) { mut_pfree(r, i*csz); goto base; } - f64 c = o2f(cw); + i64 c = o2i64(cw); if (c<0) c+= cam; if ((usz)c >= cam) { mut_pfree(r, i*csz); thrF("โŠ: Indexing out-of-bounds (%RโˆŠ๐•จ, %sโ‰กโ‰ ๐•ฉ)", cw, cam); } mut_copyG(r, i*csz, x, csz*(usz)c, csz);