hare

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

commit 9ac59a70c7c5868262d0eb75d0e47b4f58af945c
parent 16b238a08a3db4a9f671425c864ccbf5c45c613d
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Wed,  1 Dec 2021 15:48:59 +0000

rt::clone: fix on aarch64

Signed-off-by: Eyal Sawady <ecs@d2evs.net>

Diffstat:
Mrt/+linux/+aarch64.ha | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/rt/+linux/+aarch64.ha b/rt/+linux/+aarch64.ha @@ -7,7 +7,7 @@ export fn clone( child_tid: nullable *int, tls: u64, ) (int | void | errno) = { - return match (wrap_return(syscall5(SYS_clone, + match (wrap_return(syscall5(SYS_clone, flags: u64, stack: uintptr: u64, parent_tid: uintptr: u64, @@ -16,12 +16,12 @@ export fn clone( case u: u64 => switch (u) { case 0 => - yield void; + return void; case => - yield u: int; + return u: int; }; case err: errno => - yield err; + return err; }; };