mirror of
https://github.com/python/cpython.git
synced 2025-07-26 12:44:33 +00:00
Fix signed / unsigned comparison
This commit is contained in:
parent
d5df19461d
commit
c1207c1bcf
1 changed files with 1 additions and 1 deletions
|
@ -1165,7 +1165,7 @@ _Unpickler_Read(UnpicklerObject *self, char **s, Py_ssize_t n)
|
||||||
PyErr_Format(UnpicklingError, "Invalid frame length");
|
PyErr_Format(UnpicklingError, "Invalid frame length");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (frame_len < n) {
|
if ((Py_ssize_t) frame_len < n) {
|
||||||
PyErr_Format(UnpicklingError, "Bad framing");
|
PyErr_Format(UnpicklingError, "Bad framing");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue