[cairo] [PATCH 1/4] mempool: use wide enough type for pointer arithmetic
Lawrence D'Oliveiro
ldo at geek-central.gen.nz
Wed Feb 10 21:10:09 UTC 2016
On Wed, 10 Feb 2016 21:49:05 +0100, Simon Richter wrote:
> The "unsigned long" type on Windows is just 32 bits wide, so
> converting from and to a pointer is unsafe.
“unsigned long long” should work.
> Replace this with intptr_t, which is guaranteed to be wide enough. It
> would be better to use uintptr_t here, but this is not available in
> several MSVC versions.
What about size_t?
More information about the cairo
mailing list