Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 20221:abaf9ea2e560 legacy-trunk
SF bug [#467265] Compile errors on SuSe Linux on IBM/s390.
Unknown whether this fixes it.
- stringobject.c, PyString_FromFormatV: don't assume that va_list is of
a type that can be copied via an initializer.
- errors.c, PyErr_Format: add a va_end() to balance the va_start().
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Tue, 02 Oct 2001 21:32:07 +0000 |
| parents | 55874d8e0dfb |
| children | d4406fbfcb4e |
comparison
equal
deleted
inserted
replaced
| 20220:0b99174d6b17 | 20221:abaf9ea2e560 |
|---|---|
| 405 #endif | 405 #endif |
| 406 | 406 |
| 407 string = PyString_FromFormatV(format, vargs); | 407 string = PyString_FromFormatV(format, vargs); |
| 408 PyErr_SetObject(exception, string); | 408 PyErr_SetObject(exception, string); |
| 409 Py_XDECREF(string); | 409 Py_XDECREF(string); |
| 410 | 410 va_end(vargs); |
| 411 return NULL; | 411 return NULL; |
| 412 } | 412 } |
| 413 | 413 |
| 414 | 414 |
| 415 PyObject * | 415 PyObject * |
