hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit dae6ce83fec39b66209958254afc8a5bb2f82d92
parent f12a6fae426f9e68662b4af392c7de728aa5e0a7
Author: Vlad-Stefan Harbuz <vlad@vladh.net>
Date:   Wed,  5 Jan 2022 17:03:23 +0100

fix missing case in absi() and signi()

Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>

Diffstat:
Mmath/ints.ha | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/math/ints.ha b/math/ints.ha @@ -47,6 +47,8 @@ export fn absi(n: types::integer) i64 = { return (absi32(n): i64); case let n: i64 => return (absi64(n): i64); + case let n: int => + return (absi64(n): i64); }; }; @@ -124,6 +126,8 @@ export fn signi(n: types::integer) i64 = { return (signi32(n): i64); case let n: i64 => return (signi64(n): i64); + case let n: int => + return (signi64(n): i64); }; };