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 authored and GitHub committed 2018-10-09 21:49:14 +01:00
commit 627c91124a
1 file changed
+1 -1
+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);
}