mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: macOS build issue
This commit is contained in:
@@ -269,7 +269,7 @@ namespace hex::plugin::remote {
|
||||
if (offset > size || buffer.empty())
|
||||
return 0;
|
||||
|
||||
ssize_t n = libssh2_sftp_read(m_handle, reinterpret_cast<char*>(buffer.data()), std::min(buffer.size_bytes(), size - offset));
|
||||
ssize_t n = libssh2_sftp_read(m_handle, reinterpret_cast<char*>(buffer.data()), std::min<u64>(buffer.size_bytes(), size - offset));
|
||||
if (n < 0)
|
||||
return 0;
|
||||
if (n == 0)
|
||||
|
||||
Reference in New Issue
Block a user