* could be passed in for 10^3 base, but every caller expects
* 2^10 base right now.
*/
- const int thousand = 1024;
- char postfix[] = { 'K', 'M', 'G', 'P' };
+ const unsigned int thousand = 1024;
+ char postfix[] = { 'K', 'M', 'G', 'P', 'E' };
char *buf;
int i;
num /= thousand;
num += carry;
i++;
- } while (i <= 4);
+ } while (i <= 5);
return buf;
}