[Pyrex] Testing on Linux

Lenard Lindstrom len-l at telus.net
Thu Apr 20 07:59:45 CEST 2006


On 19 Apr 2006 at 18:55, Greg Ewing wrote:

> Stefan Behnel wrote:
> > /home/me/source/Python/pyrex/Pyrex-0.9.4/Tests/4/cenum.c: In function 'void __pyx_f_5cenum_eggs()':
> > /home/me/source/Python/pyrex/Pyrex-0.9.4/Tests/4/cenum.c:83: error: invalid conversion from 'int' to '__pyx_t_5cenum_Spam'
> > TEST FAILED: C++ compilation error.
> 
> This seems to be due to C++ being stricter than C about
> int-enum compatibility. Although for me it only gives a
> warning.
> 
> Again, I probably should modify the test.
> 
Whatever is decided, should it not be consistent? Either Pyrex is as 
permissive as C, automatically inserting a cast in this case, or as 
strict as C++, requiring an explicit cast in the Pyrex code.

Lenard Lindstrom
<len-l at telus.net>




More information about the Pyrex mailing list