Make newObjUninit proc to adhere to its name (#15764)
Co-authored-by: b3liever <b3liever@yandex.com>
This commit is contained in:
parent
610e9b2fe9
commit
94e2b9e837
1 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ proc nimNewObjUninit(size, alignment: int): pointer {.compilerRtl.} =
|
||||||
when defined(nimscript):
|
when defined(nimscript):
|
||||||
discard
|
discard
|
||||||
else:
|
else:
|
||||||
result = cast[ptr RefHeader](alignedAlloc0(s, alignment) +! hdrSize)
|
result = cast[ptr RefHeader](alignedAlloc(s, alignment) +! hdrSize)
|
||||||
head(result).rc = 0
|
head(result).rc = 0
|
||||||
when defined(gcOrc):
|
when defined(gcOrc):
|
||||||
head(result).rootIdx = 0
|
head(result).rootIdx = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue