Make newObjUninit proc to adhere to its name (#15764)

Co-authored-by: b3liever <b3liever@yandex.com>
This commit is contained in:
Antonis Geralis 2020-10-28 18:54:42 +02:00 • committed by GitHub
commit 94e2b9e837
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ proc nimNewObjUninit(size, alignment: int): pointer {.compilerRtl.} =
when defined(nimscript):
discard
else:
result = cast[ptr RefHeader](alignedAlloc0(s, alignment) +! hdrSize)
result = cast[ptr RefHeader](alignedAlloc(s, alignment) +! hdrSize)
head(result).rc = 0
when defined(gcOrc):
head(result).rootIdx = 0