diff options
author | Georg Brandl <georg@python.org> | 2007-10-23 19:24:22 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-10-23 19:24:22 (GMT) |
commit | e1a0d11c5cceeb71b22f3e3148f8f7d6bc0b4d8f (patch) | |
tree | b189190df6a08b5249bef4e33385049f4ccf3d04 /Python | |
parent | 083bea49a8b74a5f758c6641c299f0cc8c114616 (diff) | |
download | cpython-e1a0d11c5cceeb71b22f3e3148f8f7d6bc0b4d8f.zip cpython-e1a0d11c5cceeb71b22f3e3148f8f7d6bc0b4d8f.tar.gz cpython-e1a0d11c5cceeb71b22f3e3148f8f7d6bc0b4d8f.tar.bz2 |
#1316: remove redundant PyLong_Check calls when PyInt_Check was already called.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 4bcc175..0b25d4b 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -696,9 +696,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, case 'k': { /* long sized bitfield */ unsigned long *p = va_arg(*p_va, unsigned long *); unsigned long ival; - if (PyInt_Check(arg)) - ival = PyInt_AsUnsignedLongMask(arg); - else if (PyLong_Check(arg)) + if (PyLong_Check(arg)) ival = PyLong_AsUnsignedLongMask(arg); else return converterr("integer<k>", arg, msgbuf, bufsize); |