Dag Sverre Seljebotn wrote:
> if (sizeof(type_b) != sizeof(long) || ((type_a)-1) != ((type_b)-1) || 
> ((type_a)0.5) != ((type_b)0.5))) { /*raise exception*/ }
>   

Sorry, this should be

if (sizeof(type_b) != sizeof(long) || ((type_b)-1) != ((long)-1) || 
((type_b)0.5) != ((long)0.5))) { /*raise exception*/ }

i.e. it is checked that "type_b" really is exactly a "long" at C 
compilation time.

Dag Sverre


_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to