harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 316f8fafd95b469416ec394ee4fec2d91ed32ce0
parent 188b16b7160324e8f9ea5e85687c526bd6700725
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Tue, 15 Jun 2021 07:41:24 +0000

rt::free: drop unnecessary cast

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

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

diff --git a/rt/malloc.ha b/rt/malloc.ha @@ -115,7 +115,7 @@ fn list_from_block(s: size, p: uintptr) nullable *void = { // Frees a pointer previously allocated with [malloc]. export @symbol("rt.free") fn free_(_p: nullable *void) void = { nfree += 1; - if (_p != null: nullable *void) { + if (_p != null) { let p = _p: *void; let bsize = (p: uintptr - size(size): uintptr): *[1]size; let s = bsize[0];