[Numpy-discussion] scalarmath fails to build
Ted Horst
ted.horst at earthlink.net
Tue May 2 20:11:02 EDT 2006
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(_ at name@_convert2_to_ctypes(a, &arg1, b, &arg2)) {
More information about the NumPy-Discussion
mailing list