summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-08-24 00:50:59 +0800
committerGitHub <noreply@github.com>2022-08-23 18:50:59 +0200
commit9753dd0a1bd4a9993941dcd1e39d930bd2bb8bf0 (patch)
treea180bdc268a4f34a54ab187770bd23211f06f228 /lib/pure
parente8556b45f58b3b231c3720189bad9a4eeb6ca51f (diff)
downloadNim-9753dd0a1bd4a9993941dcd1e39d930bd2bb8bf0.tar.gz
remove `shallow` usages for ORC (#20109)
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/asyncnet.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim
index 61c2fc75a..cd02e5df5 100644
--- a/lib/pure/asyncnet.nim
+++ b/lib/pure/asyncnet.nim
@@ -399,7 +399,8 @@ proc recv*(socket: AsyncSocket, size: int,
   ## to be read then the future will complete with a value of `""`.
   if socket.isBuffered:
     result = newString(size)
-    shallow(result)
+    when not defined(nimSeqsV2):
+      shallow(result)
     let originalBufPos = socket.currPos
 
     if socket.bufLen == 0: