From bbd245b47bb1d368b9bd91548ec7fec4c800462b Mon Sep 17 00:00:00 2001 From: EXetoC Date: Thu, 6 Mar 2014 02:43:05 +0100 Subject: [PATCH] Add missing cast. --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.nim b/lib/system.nim index 304c22f509..e0977d1042 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1247,7 +1247,7 @@ when not defined(nimrodVM): ## least ``T.sizeof * newSize`` bytes. If ``newSize == 0`` and p is ## not **nil** ``reallocShared`` calls ``deallocShared(p)``. In other ## cases the block has to be freed with ``deallocShared``. - reallocShared(p, T.sizeof * n) + cast[ptr T](reallocShared(p, T.sizeof * newSize)) proc deallocShared*(p: pointer) {.noconv, rtl.} ## frees the memory allocated with ``allocShared``, ``allocShared0`` or ## ``reallocShared``. This procedure is dangerous! If one forgets to