From d568363144c9ab011e04067e8a421e04750b0cf4 Mon Sep 17 00:00:00 2001 From: dzaima Date: Thu, 9 Sep 2021 17:07:39 +0300 Subject: [PATCH] =?UTF-8?q?fix=20-=F0=9D=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/arithm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtins/arithm.c b/src/builtins/arithm.c index 808f76f8..bac1ca43 100644 --- a/src/builtins/arithm.c +++ b/src/builtins/arithm.c @@ -38,8 +38,8 @@ static inline B arith_recm(BB2B f, B x) { #define P1(N) { if(isArr(x)) return arith_recm(N##_c1, x); } B add_c1(B t, B x) { return x; } -GC1i("-", sub, -v, v== MAX, -v) // change icond to v==-v to support ¯0 -GC1i("¬", not, 1-v, v<=-MAX, 1-v) // v<=-I32_MAX +GC1i("-", sub, -v, v== MIN, -v) // change icond to v==-v to support ¯0 (TODO that won't work for i8/i16) +GC1i("¬", not, 1-v, v<=-MAX, 1-v) GC1i("|", stile, fabs(v), v== MIN, v<0?-v:v) GC1i("⌊", floor, floor(v), 0, v) GC1i("⌈", ceil, ceil(v), 0, v)