From 436b847a7ecc0b4ce5a7952ea9e6af846a0d5491 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Mon, 3 Aug 2015 14:11:48 +0300 Subject: [PATCH] Workaround for #3179. --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.nim b/lib/system.nim index 383002fcfc..85d16708ca 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1490,7 +1490,7 @@ when not defined(nimrodVM): ## containing zero, so it is somewhat safer than ``createU``. ## The allocated memory belongs to its allocating thread! ## Use `createShared` to allocate from a shared heap. - cast[ptr T](alloc0(T.sizeof * size)) + cast[ptr T](alloc0(sizeof(T) * size)) proc realloc*(p: pointer, newSize: Natural): pointer {.noconv, rtl, tags: [], benign.} ## grows or shrinks a given memory block. If p is **nil** then a new