Fixed heap alloc not allowing empty structs on Linux - Fixes #267

This commit is contained in:
Alexis Breust
2018-10-09 08:34:48 +02:00
parent 9623e5e032
commit 4eba717281

View File

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