Re: [PATCH 1/4] mempool: use wide enough type for pointer arithmetic
Guillermo Rodriguez <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CABDcavbOcE9ecKPAGFrxt8zCW7656epaBnn+F1uS69Z3SnESTA@mail.gmail.com> |
2016-02-11 0:10 GMT+01:00 Lawrence D'Oliveiro <[email protected]>: > 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 -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo