[Python-Dev] test_array failure on AIX

Vladimir Marangozov Vladimir.Marangozov@inrialpes.fr
Sat, 1 Jul 2000 02:37:39 +0200 (CEST)


Guido van Rossum wrote:
> 
> Look at b_setitem() in arraymodule.c.
> 
> What is CHAR_MIN?
> 
> Do you perchance have unsigned characters???

This answers your question:

/usr/include/sys/limits.h:#define CHAR_MIN      (0)
/usr/include/sys/limits.h:#define SCHAR_MIN     (-SCHAR_MAX - 1)

> 
> If so, let's just replace CHAR_MIN with -128 and CHAR_MAX with 127.

Yes!
I #undef/define'd them like this in arraymodule.c and the test passes.

Thanks!

-- 
       Vladimir MARANGOZOV          | Vladimir.Marangozov@inrialpes.fr
http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252