prc: fix a compilation warning in encryptStream.cxx

This commit is contained in:
rdb 2019-07-10 14:12:05 +02:00
parent 99e6a1d9b8
commit 0ce25d0e30

View File

@ -27,7 +27,7 @@ read_magic(const char *magic, size_t size) {
char *this_magic = (char *)alloca(size);
read(this_magic, size);
if (!fail() && gcount() == size && memcmp(this_magic, magic, size) == 0) {
if (!fail() && (size_t)gcount() == size && memcmp(this_magic, magic, size) == 0) {
_buf.set_magic_length(size);
return true;
} else {