[PYTHON MATRIX-SIG] Problem compiling ofuncobject.c

Chris Chase S1A chris.chase@jhuapl.edu
Mon, 29 Jan 1996 14:02:42 -0500


While compiling the 0.32 release of the NumericPython I ran into an
error.

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
result.

The rest of the compile was successful.

Chris

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================