mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-18 23:31:13 +00:00
Fix x86 int conversion.
This commit is contained in:
parent
eb81018d02
commit
1d49ae7a47
@ -111,7 +111,8 @@ proc chunkedReadLoop(stream: AsyncStreamReader) {.async.} =
|
||||
var chunksize = cres.get()
|
||||
if chunksize > 0'u64:
|
||||
while chunksize > 0'u64:
|
||||
let toRead = min(int(chunksize), rstream.buffer.bufferLen())
|
||||
let toRead = int(min(chunksize,
|
||||
uint64(rstream.buffer.bufferLen())))
|
||||
await rstream.rsource.readExactly(rstream.buffer.getBuffer(),
|
||||
toRead)
|
||||
rstream.buffer.update(toRead)
|
||||
|
Loading…
x
Reference in New Issue
Block a user