From 4eba717281bdce4b034c86b44a482feb0182d2cf Mon Sep 17 00:00:00 2001 From: Alexis Breust Date: Tue, 9 Oct 2018 08:34:48 +0200 Subject: Fixed heap alloc not allowing empty structs on Linux - Fixes #267 --- core/os/os_linux.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3