mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +00:00
Fixed heap alloc not allowing empty structs on Linux - Fixes #267
This commit is contained in:
@@ -219,7 +219,7 @@ access :: inline proc(path: string, mask: int) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
heap_alloc :: proc(size: int) -> rawptr {
|
heap_alloc :: proc(size: int) -> rawptr {
|
||||||
assert(size > 0);
|
assert(size >= 0);
|
||||||
return _unix_calloc(1, size);
|
return _unix_calloc(1, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user