Workaround for #3179.
This commit is contained in:
parent
e1913abdd4
commit
436b847a7e
1 changed files with 1 additions and 1 deletions
|
|
@ -1490,7 +1490,7 @@ when not defined(nimrodVM):
|
||||||
## containing zero, so it is somewhat safer than ``createU``.
|
## containing zero, so it is somewhat safer than ``createU``.
|
||||||
## The allocated memory belongs to its allocating thread!
|
## The allocated memory belongs to its allocating thread!
|
||||||
## Use `createShared` to allocate from a shared heap.
|
## 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: [],
|
proc realloc*(p: pointer, newSize: Natural): pointer {.noconv, rtl, tags: [],
|
||||||
benign.}
|
benign.}
|
||||||
## grows or shrinks a given memory block. If p is **nil** then a new
|
## grows or shrinks a given memory block. If p is **nil** then a new
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue