[GiNaC-devel] Fix the compliation error *for real*
Alexei Sheplyakov
varg at metalica.kh.ua
Sat Aug 8 10:45:16 CEST 2009
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
More information about the GiNaC-devel
mailing list