From: Ted H. <ted...@ea...> - 2006-05-03 03:10:22
|
Here is a patch: --- numpy/core/src/scalarmathmodule.c.src (revision 2471) +++ numpy/core/src/scalarmathmodule.c.src (working copy) @@ -597,7 +597,12 @@ { PyObject *ret; @name@ arg1, arg2, out; +#if @cmplx@ + @otyp@ out1; + out1.real = out.imag = 0; +#else @otyp@ out1=0; +#endif int retstatus; switch(_@name@_convert2_to_ctypes(a, &arg1, b, &arg2)) { |