diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2015-08-05 19:41:19 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2015-08-05 19:41:19 +0100 |
commit | 05ada2da4320c2caeb8b508eeea03739182d05fe (patch) | |
tree | bba63cfa0de25227fd90f728a0fc4ffa436e321d | |
parent | 096ce55c1a50ad2f8ae43e4928218b85fb5d3d20 (diff) | |
parent | 436b847a7ecc0b4ce5a7952ea9e6af846a0d5491 (diff) | |
download | Nim-05ada2da4320c2caeb8b508eeea03739182d05fe.tar.gz |
Merge pull request #3180 from yglukhov/3179-workaround
Workaround for #3179.
-rw-r--r-- | lib/system.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index e5cae1336..8cae7c5db 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1500,7 +1500,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 |