[PYTHON MATRIX-SIG] Problem compiling ofuncobject.c
Chris Chase S1A
Mon, 29 Jan 1996 14:02:42 -0500
While compiling the 0.32 release of the NumericPython I ran into an
Compiling on SGI with IRIX 5.2 and gcc 2.6.0.
I received the following output:
gcc -O -I./../Include -I.. -DHAVE_CONFIG_H -c ./ofuncobject.c
./ofuncobject.c: In function `PyOFunc_GenericReduction':
./ofuncobject.c:490: wrong type argument to unary exclamation mark
./ofuncobject.c: In function `PyOFunc_GenericReduceAt':
./ofuncobject.c:590: wrong type argument to unary exclamation mark
*** Error code 1 (bu21)
In ofuncobject.c, lines 490 and 590 have the following:
if (self->check_return) TRY(check_array(ret));
With TRY defined as:
#define TRY(E) if(! (E)) return NULL
The problem is check_array() has return type void.
I took out the TRY() on those two lines as no action is taken on the
The rest of the compile was successful.
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: firstname.lastname@example.org
administrivia to: email@example.com