mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
prc: fix a compilation warning in encryptStream.cxx
This commit is contained in:
parent
99e6a1d9b8
commit
0ce25d0e30
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user