Add missing cast.
This commit is contained in:
parent
6a83a5e468
commit
bbd245b47b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue