[Python-3000] sizeof(size_t) < sizeof(long) (original) (raw)

Trent Nelson tnelson at onresolve.com
Tue Apr 15 13:04:31 CEST 2008


Mark Dickinson <dickinsm gmail.com> writes: > Fair enough. My twisted mind was trying to find ways that sizet > might be something other than long or long long, but that seems > unlikely...

There has been a report where sizeof(sizet) < sizeof(long)._ _It breaks things in the dict implementation:_ _http://bugs.python.org/issue1646068_ _< On the system I'm porting to, ints and pointers (and_ _ssizet) are 32-bit, but longs and long longs are 64-bit. >

I wonder what system that is; sizeof(size_t) & sizeof(void *) < sizeof(long|long long) is quite peculiar, no?

    Trent.


More information about the Python-3000 mailing list