
13 Dec
2014
13 Dec
'14
1:38 p.m.
Think about a for loop:
for (i = 0; i < xxx; i++) {
If "i" is really so high that it goes negative you have a very serious issue whether it's signed or unsigned. If it's signed then the loop is a no-op but if it's unsigned then it corrupts memory.
That's not a win.
regards, dan carpenter