hare

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

commit 82512fcee2e57aad70d7f5ad1cdfd77d04eb67f1
parent 91a470d357a7db3712ccc6b797a784da0d549b5d
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 20 Apr 2021 08:25:25 -0400

rt: don't use out of range u64 literal

Diffstat:
Mrt/+linux/errno.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rt/+linux/errno.ha b/rt/+linux/errno.ha @@ -7,7 +7,7 @@ export fn wrap_errno(err: int) errno = err: errno; // Checks the return value from a Linux syscall and, if found to be in error, // returns the appropriate error. Otherwise, returns the original value. fn wrap_return(r: u64) (errno | u64) = { - if (r > -4096u64) { + if (r > -4096: u64) { return (-(r: i64)): int: errno; }; return r;