mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-02 10:53:16 +03:00
Suppress signed/unsigned comparison warning.
This commit is contained in:
committed by
Alexander Lamaison
parent
7b4d6b2868
commit
28b179ecf2
@@ -241,7 +241,7 @@ read_file_into_string(char ** key, LIBSSH2_SESSION * session, FILE * fp)
|
||||
}
|
||||
|
||||
read = fread(*key, 1, size, fp);
|
||||
if (read != size) {
|
||||
if (read != (size_t) size) {
|
||||
LIBSSH2_FREE(session, *key);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user