diff options
author | Stefan Talpalaru <stefantalpalaru@yahoo.com> | 2015-06-09 17:58:54 +0200 |
---|---|---|
committer | Stefan Talpalaru <stefantalpalaru@yahoo.com> | 2015-06-09 17:58:54 +0200 |
commit | 02ddbae8f659b2c3bf3f05a924bccbc3c15c3137 (patch) | |
tree | 6375c625fe4823cbae7ae32ebe0a9dfd1b6a6695 /lib/system | |
parent | 50e96ad939c39c9d9e25b75803ed971fad49dc8f (diff) | |
download | Nim-02ddbae8f659b2c3bf3f05a924bccbc3c15c3137.tar.gz |
fix growObj() with strings
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/sysstr.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/sysstr.nim b/lib/system/sysstr.nim index d44552902..6e3c8722d 100644 --- a/lib/system/sysstr.nim +++ b/lib/system/sysstr.nim @@ -50,12 +50,14 @@ proc rawNewStringNoInit(space: int): NimString {.compilerProc.} = if s < 7: s = 7 result = allocStrNoInit(sizeof(TGenericSeq) + s + 1) result.reserved = s + result.elemSize = 1 proc rawNewString(space: int): NimString {.compilerProc.} = var s = space if s < 7: s = 7 result = allocStr(sizeof(TGenericSeq) + s + 1) result.reserved = s + result.elemSize = 1 proc mnewString(len: int): NimString {.compilerProc.} = result = rawNewString(len) |