mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 10:52:19 +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 {
|
||||
assert(size > 0);
|
||||
assert(size >= 0);
|
||||
return _unix_calloc(1, size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user