commit 5cc7fa8154af2d909c3a4bcbd5260822e162e35b
parent 59144095cf0bfd6f7626059fe41bb98e2939e2cc
Author: Sebastian <sebastian@sebsite.pw>
Date: Fri, 25 Aug 2023 02:49:15 -0400
sort: stop using void array
This will eventually be disallowed, since otherwise it's unclear whether
[*]void's size is zero or undefined, and if the latter, whether it
allocates any storage, and thus can even be pointed to.
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sort/search.ha b/sort/search.ha
@@ -19,7 +19,7 @@ export fn search(
ba = (v: uintptr + sz: uintptr): *[*]u8;
nmemb -= nmemb / 2 + 1;
} else {
- const offs = (v: uintptr - in: *[*]const void: uintptr);
+ const offs = (v: uintptr - in: *[*]u8: uintptr);
return (offs / sz: uintptr): size;
};
};