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 22:28:59 +0100, Simon Richter wrote:

> On 10.02.2016 22:10, Lawrence D'Oliveiro wrote:
>
>> “unsigned long long” should work.  
> 
> Yes, but that is 64 bits wide even on 32 bit architectures.

Could that cause any problems with the code in question?

>> What about size_t?  
> 
> That doesn't come with a guarantee either.

It’s big enough to represent the size of any object that can occupy
memory. Therefore, it’s big enough to represent the address of any
object that can occupy memory.
-- 
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.