mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
StringStreams no longer errors when intialized with literals on arc/orc (#19708)
(cherry picked from commit 26acc97864)
This commit is contained in:
@@ -1271,6 +1271,8 @@ else: # after 1.3 or JS not defined
|
||||
|
||||
new(result)
|
||||
result.data = s
|
||||
when defined(gcOrc) or defined(gcArc):
|
||||
prepareMutation(result.data) # Allows us to mutate using `addr` logic like `copyMem`, otherwise it errors.
|
||||
result.pos = 0
|
||||
result.closeImpl = ssClose
|
||||
result.atEndImpl = ssAtEnd
|
||||
|
||||
Reference in New Issue
Block a user