8 Aug
2009
8 Aug
'09
10:45 a.m.
Hello, On Fri, Aug 07, 2009 at 04:04:46PM -0700, Sergei Steshenko wrote:
Guys, I think a much more conceptually correct solution (even though this one works) would be to use
size_t
instead of
unsigned long .
The politically correct type is uintptr_t. And (AFAIK) the sizeof(size_t) is NOT guaranteed to be the same as sizeof(void*). And on any sane platform sizeof(long) == sizeof(void*) anyway. Best regards, Alexei