diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-20 18:57:39 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-20 18:57:39 (GMT) |
commit | 9a276172391d186d80797c29ad0a1c32e22ac2d2 (patch) | |
tree | 0837d051f298ad3408bf634be72039cad2559065 /Python | |
parent | e393bf6fe30acff8168d78a09661453046aadec1 (diff) | |
download | cpython-9a276172391d186d80797c29ad0a1c32e22ac2d2.zip cpython-9a276172391d186d80797c29ad0a1c32e22ac2d2.tar.gz cpython-9a276172391d186d80797c29ad0a1c32e22ac2d2.tar.bz2 |
Based on discussion with Martin and Thomas on python-checkins
add a Py_SAFE_DOWNCAST() to make the code correct.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags) : 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); |