Re:Pitfalls in C and C++: Unsigned Types (2011)
by dllthomas on Thursday September 26, 2013 @03:14AM
(#6449349)
On reflection, using something larger doesn't help, since if sizeof(void*) == sizeof(i) then a[(__typeof(i))-1] will almost certainly refer to the same address whether i is signed or unsigned.
[ Parent
| on HN ]
There are no comments on this comment yet.