Fix signed / unsigned comparison

This commit is contained in:
Antoine Pitrou 2013-11-23 21:34:04 +01:00
parent d5df19461d
commit c1207c1bcf
1 changed files with 1 additions and 1 deletions

View File

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