mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-05 09:30:35 +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);
|
read = fread(*key, 1, size, fp);
|
||||||
if (read != size) {
|
if (read != (size_t) size) {
|
||||||
LIBSSH2_FREE(session, *key);
|
LIBSSH2_FREE(session, *key);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user