mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix assert caused by typo
This commit is contained in:
Vendored
+1
-1
@@ -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
|
// Note that realloc does not actually care about alignment and is allowed to just align it to something
|
||||||
// else than the original allocation.
|
// else than the original allocation.
|
||||||
ptr, err := runtime.non_zero_mem_resize(ptr, -1, int(new_size))
|
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)
|
return raw_data(ptr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user