diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-11-23 20:34:04 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-11-23 20:34:04 (GMT) |
commit | c1207c1bcf732bc3e9c8875cfb0343af98ebc41c (patch) | |
tree | 5092e29215c5eb116b308f6622498ba0903c7898 /Modules/_pickle.c | |
parent | d5df19461d9e195f4f0063a0a63b816612f2fc4e (diff) | |
download | cpython-c1207c1bcf732bc3e9c8875cfb0343af98ebc41c.zip cpython-c1207c1bcf732bc3e9c8875cfb0343af98ebc41c.tar.gz cpython-c1207c1bcf732bc3e9c8875cfb0343af98ebc41c.tar.bz2 |
Fix signed / unsigned comparison
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r-- | Modules/_pickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 11e07b3..22ce7a5 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -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; } |