Commit c1207c1b authored by Antoine Pitrou's avatar Antoine Pitrou

Fix signed / unsigned comparison

parent d5df1946
...@@ -1165,7 +1165,7 @@ _Unpickler_Read(UnpicklerObject *self, char **s, Py_ssize_t n) ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment