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

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


> Mark Dickinson <dickinsm <at> gmail.com> writes:
> > Fair enough.  My twisted mind was trying to find ways that size_t
> > might be something other than long or long long, but that seems
> > unlikely...
>
> There has been a report where sizeof(size_t) < 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
> ssize_t) 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