Skip to content

Commit

Permalink
fixup: fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
karknu committed Feb 11, 2025
1 parent e7fb5de commit 017aa8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions network-mux/src/Network/Mux/Bearer/NamedPipe.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ namedPipeAsBearer sduSize tracer h =
Mx.read = readNamedPipe,
Mx.write = writeNamedPipe,
Mx.writeMany = writeNamedPipeMany,
Mx.sduSize = sduSize
Mx.batchSize = fromIntegral $ getSDUSize sduSize
Mx.sduSize = sduSize,
Mx.batchSize = fromIntegral $ Mx.getSDUSize sduSize
}
where
readNamedPipe :: Mx.TimeoutFn IO -> IO (Mx.MuxSDU, Time)
Expand Down
2 changes: 1 addition & 1 deletion network-mux/src/Network/Mux/Bearer/Socket.hs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ socketAsMuxBearer sduSize batchSize readBuffer readBufferSize sduTimeout tracer
if BL.null availableData
then do
#if defined(mingw32_HOST_OS)
buf <- Win32.Async.recv sd (max l readBufferSize)
buf <- Win32.Async.recv sd (fromIntegral $ max l readBufferSize)
#else
buf <- Socket.recv sd (max l readBufferSize)
#endif
Expand Down

0 comments on commit 017aa8f

Please sign in to comment.