Mercurial > cpython-lru_cache-weakref
comparison Python/getargs.c @ 34665:46300b1aa2f6 2.4
Revert previous checkin on getargs 'L' code. Try to convert all
numbers in PyLong_AsLongLong, and update test suite accordingly.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Thu, 03 Mar 2005 12:26:20 +0000 |
| parents | d9927a65f5f9 |
| children | 97c97194e64b 13d5caa1e9d0 |
comparison
equal
deleted
inserted
replaced
| 34659:75564530f50c | 34665:46300b1aa2f6 |
|---|---|
| 608 #ifdef HAVE_LONG_LONG | 608 #ifdef HAVE_LONG_LONG |
| 609 case 'L': {/* PY_LONG_LONG */ | 609 case 'L': {/* PY_LONG_LONG */ |
| 610 PY_LONG_LONG *p = va_arg( *p_va, PY_LONG_LONG * ); | 610 PY_LONG_LONG *p = va_arg( *p_va, PY_LONG_LONG * ); |
| 611 PY_LONG_LONG ival = PyLong_AsLongLong( arg ); | 611 PY_LONG_LONG ival = PyLong_AsLongLong( arg ); |
| 612 if( ival == (PY_LONG_LONG)-1 && PyErr_Occurred() ) { | 612 if( ival == (PY_LONG_LONG)-1 && PyErr_Occurred() ) { |
| 613 PyErr_Clear(); | |
| 614 return converterr("long<L>", arg, msgbuf, bufsize); | 613 return converterr("long<L>", arg, msgbuf, bufsize); |
| 615 } else { | 614 } else { |
| 616 *p = ival; | 615 *p = ival; |
| 617 } | 616 } |
| 618 break; | 617 break; |
