diff options
Diffstat (limited to 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 7ec31c3535..0c47614a87 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -498,16 +498,18 @@ convertsimple1(arg, p_format, p_va) break; } +#ifndef WITHOUT_COMPLEX case 'D': /* complex double */ { - complex *p = va_arg(*p_va, complex *); - complex cval = PyComplex_AsCComplex(arg); + Py_complex *p = va_arg(*p_va, Py_complex *); + Py_complex cval = PyComplex_AsCComplex(arg); if (err_occurred()) return "complex<D>"; else *p = cval; break; } +#endif /* WITHOUT_COMPLEX */ case 'c': /* char */ { |