On May 15, 2009, at 12:26 PM, Lisandro Dalcin wrote: > On Fri, May 15, 2009 at 4:03 PM, Robert Bradshaw > <[email protected]> wrote: >> >>>> Also, we are >>>> assuming that the only sizes that can occur are char, short, int, >>>> long, and long long. (It sounds inconceivable, but the C spec would >>>> allow 16-bit ints and 64-bit longs, or 64-bit ints as in ILP64.) >>>> >>> >>> OK... I could fix this returning a PyLong instance. >> >> My point was that there are systems with none of char, short, int, >> long being 32 bits, but your extern type could have 32 bits. The if- >> then statement dispatching on type sizes wouldn't work. >> > > I understood precisely that, and my point was that is more or less > easy to support, for example
OK, I was the one who didn't get what you were saying then. Really, we only need three cases 1) fits in long 2) fits in unsigned long (for unsigned types only) 3) fits in (un)signed long long - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
