Re: [PATCH 1/4] mempool: use wide enough type for pointer arithmetic

Lawrence D'Oliveiro <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Geek Central
Message-ID <[email protected]>
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?
-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.