diff --git a/Python/modsupport.c b/Python/modsupport.c index ef36d108f5b..08685898da2 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -286,6 +286,12 @@ do_mkvalue(char **p_format, va_list *p_va) return PyFloat_FromDouble( (double)va_arg(*p_va, va_double)); +#ifndef WITHOUT_COMPLEX + case 'D': + return PyComplex_FromCComplex( + *((Py_complex *)va_arg(*p_va, Py_complex *))); +#endif /* WITHOUT_COMPLEX */ + case 'c': { char p[1];