commit | 9a276172391d186d80797c29ad0a1c32e22ac2d2 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Mon Feb 20 18:57:39 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Mon Feb 20 18:57:39 2006 +0000 |
tree | 0837d051f298ad3408bf634be72039cad2559065 | |
parent | e393bf6fe30acff8168d78a09661453046aadec1 [diff] |
Based on discussion with Martin and Thomas on python-checkins add a Py_SAFE_DOWNCAST() to make the code correct.
diff --git a/Python/getargs.c b/Python/getargs.c index 530dffb..fbf5cef 100644 --- a/Python/getargs.c +++ b/Python/getargs.c
@@ -284,7 +284,7 @@ : len < min ? "at least" : "at most", len < min ? min : max, (len < min ? min : max) == 1 ? "" : "s", - (long)len); + Py_SAFE_DOWNCAST(len, Py_ssize_t, long)); message = msgbuf; } PyErr_SetString(PyExc_TypeError, message);