diff options
Diffstat (limited to 'lib/system/channels.nim')
-rw-r--r-- | lib/system/channels.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/channels.nim b/lib/system/channels.nim index 89f742ca5..f5bcdec03 100644 --- a/lib/system/channels.nim +++ b/lib/system/channels.nim @@ -143,7 +143,7 @@ proc storeAux(dest, src: Pointer, mt: PNimType, t: PRawChannel, # XXX we should use the dynamic type here too, but that is not stored # in the inbox at all --> use source[]'s object type? but how? we need # a tyRef to the object! - var obj = newObj(mt.base, mt.base.size) + var obj = newObj(mt, mt.base.size) unsureAsgnRef(x, obj) storeAux(x[], s, mt.base, t, mode) if mode != mStore: Dealloc(t.region, s) |