
30 Oct
2008
30 Oct
'08
5:08 p.m.
Long is a bit different as I think most programmers have always expected 'long' to be big enough to cover all offsets in the address space (most 64 bit unices have 64 bit longs. I think that Win64 is the exception). Anyways, correct code should always use size_t for sizes and ptrdiff_t for offsets.
... and {u}intptr_t when converting between pointers and integers. -Ossama