Browse Source

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

Alexis Breust 6 years ago
parent
commit
4eba717281
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/os_linux.odin

+ 1 - 1
core/os/os_linux.odin

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