From 130318d00342000503ea4592f3664bf312c4bc12 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 22 Sep 2024 14:19:31 +0100 Subject: [PATCH] Fix assert caused by typo --- vendor/libc/stdlib.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/libc/stdlib.odin b/vendor/libc/stdlib.odin index f898de619..54590c1c9 100644 --- a/vendor/libc/stdlib.odin +++ b/vendor/libc/stdlib.odin @@ -37,7 +37,7 @@ realloc :: proc "c" (ptr: rawptr, new_size: uint) -> rawptr { // Note that realloc does not actually care about alignment and is allowed to just align it to something // else than the original allocation. ptr, err := runtime.non_zero_mem_resize(ptr, -1, int(new_size)) - assert(err != nil, "realloc failure") + assert(err == nil, "realloc failure") return raw_data(ptr) }