On Wed, Feb 11, 2009 at 6:37 PM, Robert Bradshaw
<[email protected]> wrote:
>
> I think the fix should be simple (I'll look at it later today, I'm
> off to catch the bus) but if not, lets roll it back.
>

Robert, IMHO, the below code is wrong...

c_size_t_type =      CSizeTType(6, 1, "(sizeof(size_t) ==
sizeof(unsigned long) ? T_ULONG : T_ULONGLONG)")

what would happend if size_t is unsigned int, and sizeof(unsigend int)
< sizeof(unsigend long). You will end-up returning garbage...

As I said in previous mail, I believe the only sane way to fix this is
to use a property...



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to