[cairo] [PATCH 1/4] mempool: use wide enough type for pointer arithmetic
ldo at geek-central.gen.nz
Wed Feb 10 23:10:57 UTC 2016
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.
More information about the cairo