mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 02:40:41 -04:00
Fixed heap alloc not allowing empty structs on Linux - Fixes #267
This commit is contained in:
1 parent
9623e5e032
commit
4eba717281
1 file changed
+1
-1
@@ -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