mirror of https://github.com/python/cpython
Fix signed / unsigned comparison
This commit is contained in:
parent
d5df19461d
commit
c1207c1bcf
|
@ -1165,7 +1165,7 @@ _Unpickler_Read(UnpicklerObject *self, char **s, Py_ssize_t n)
|
|||
PyErr_Format(UnpicklingError, "Invalid frame length");
|
||||
return -1;
|
||||
}
|
||||
if (frame_len < n) {
|
||||
if ((Py_ssize_t) frame_len < n) {
|
||||
PyErr_Format(UnpicklingError, "Bad framing");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue