fixes #7766
This commit is contained in:
parent
cda591a42f
commit
7d78707e36
1 changed files with 2 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ proc rawNewStringNoInit(space: int): NimString {.compilerProc.} =
|
|||
if s < 7: s = 7
|
||||
result = allocStrNoInit(sizeof(TGenericSeq) + s + 1)
|
||||
result.reserved = s
|
||||
result.len = 0
|
||||
when defined(gogc):
|
||||
result.elemSize = 1
|
||||
|
||||
|
|
@ -84,6 +85,7 @@ proc rawNewString(space: int): NimString {.compilerProc.} =
|
|||
if s < 7: s = 7
|
||||
result = allocStr(sizeof(TGenericSeq) + s + 1)
|
||||
result.reserved = s
|
||||
result.len = 0
|
||||
when defined(gogc):
|
||||
result.elemSize = 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue