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

Guillermo Rodriguez guillerodriguez.dev at gmail.com
Thu Feb 11 07:55:04 UTC 2016


2016-02-11 0:10 GMT+01:00 Lawrence D'Oliveiro <ldo at geek-central.gen.nz>:
> On Wed, 10 Feb 2016 22:28:59 +0100, Simon Richter wrote:
>>> 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.

This is not correct. See the various answers to this question in SO:
http://stackoverflow.com/a/1464194/450398

Regards,

Guillermo Rodriguez


More information about the cairo mailing list