diff options
Diffstat (limited to 'tests/async/tioselectors.nim')
-rw-r--r-- | tests/async/tioselectors.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/async/tioselectors.nim b/tests/async/tioselectors.nim index fdb8d9597..77d03f8f6 100644 --- a/tests/async/tioselectors.nim +++ b/tests/async/tioselectors.nim @@ -234,7 +234,7 @@ when not defined(windows): if fd == -1: raiseOsError(osLastError()) let length = len(data).cint - if posix.write(fd, cast[pointer](unsafeAddr data[0]), + if posix.write(fd, cast[pointer](addr data[0]), len(data).cint) != length: raiseOsError(osLastError()) if posix.close(fd) == -1: |