Merge pull request #271 from Breush/267-bugfix-linux-heap-alloc-zero

Fixed heap alloc not allowing empty structs on Linux
This commit is contained in:
gingerBill
2018-10-09 21:49:14 +01:00
committed by GitHub
+1 -1
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);
}