hare

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

commit 488771bc8cef15557a44815eb6f7808df40a09f7
parent 0e4d23b852c210e65ed9f2b85312bad6208d021b
Author: Bor Grošelj Simić <bgs@turminal.net>
Date:   Wed, 15 Mar 2023 13:42:04 +0100

remove arithmetic on pointer types

It's not allowed by the language spec and harec is going to start enforcing that.

Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>

Diffstat:
Mlinux/vdso/vdso.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux/vdso/vdso.ha b/linux/vdso/vdso.ha @@ -144,7 +144,7 @@ fn vdso_checkver(ctx: *vdso_ctx, version: str, num: u32) bool = { return version == strings::fromc(name: *char)!; }; prev = cur; - cur += cur.vd_next: uintptr; + cur = (cur: uintptr + cur.vd_next: uintptr): *elf::verdef64; }; return false; };