1
0
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:
Steven Van Ingelgem
2009-08-16 23:14:20 +01:00
committed by Alexander Lamaison
parent 7b4d6b2868
commit 28b179ecf2

View File

@@ -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;
}