Fix assert caused by typo

This commit is contained in:
gingerBill
2024-09-22 14:19:31 +01:00
parent 1ae57d8d20
commit 130318d003

View File

@@ -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)
}