aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Breust <alexis.breust@gmail.com>2018-10-09 08:34:48 +0200
committerAlexis Breust <alexis.breust@gmail.com>2018-10-09 08:34:48 +0200
commit4eba717281bdce4b034c86b44a482feb0182d2cf (patch)
tree8b0a2a0f21ed20e17207ea17ac38fc3bdac56a88
parent9623e5e032b078d546fee5e8ee9b23e9107a15eb (diff)
Fixed heap alloc not allowing empty structs on Linux - Fixes #267
-rw-r--r--core/os/os_linux.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin
index 4a10232b5..284b1e89a 100644
--- a/core/os/os_linux.odin
+++ b/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);
}