diff --git a/Sources/Citadel/SFTP/Client/SFTPFile.swift b/Sources/Citadel/SFTP/Client/SFTPFile.swift index eefe35e..bbca13d 100644 --- a/Sources/Citadel/SFTP/Client/SFTPFile.swift +++ b/Sources/Citadel/SFTP/Client/SFTPFile.swift @@ -111,7 +111,7 @@ public final class SFTPFile { length: UInt32(consumed) ) - readableBytes -= data.readableBytes + readableBytes -= UInt64(data.readableBytes) buffer.writeBuffer(&data) } } else {