From ed25ef0f94860ce5d2e9fbfbd3a05c827358066c Mon Sep 17 00:00:00 2001 From: Nyeogmi Date: Thu, 22 Dec 2022 18:35:24 -0800 Subject: [PATCH] Golf sgn0 --- chameleonic.p8 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chameleonic.p8 b/chameleonic.p8 index edc351d..3d3066c 100644 --- a/chameleonic.p8 +++ b/chameleonic.p8 @@ -93,8 +93,7 @@ function _apply(x,ts,a) end function sgn0(x) - if (x==0) return x - return sgn(x) + return x!=0 and sgn(x) or 0 end function _mnmx(x,y)