Index: Format.cpp =================================================================== --- Format.cpp (revision 11823) +++ Format.cpp (working copy) @@ -84,6 +84,7 @@ String FormatIntAlpha(int i, bool upper) { + const char *itoc = upper ? "ZABCDEFGHIJKLMNOPQRSTUVWXYZ" : "zabcdefghijklmnopqrstuvwxyz"; if(IsNull(i) || i == 0) return Null; String out; @@ -93,10 +94,8 @@ i = -i; } char temp[10], *p = temp; - i--; - char start = (upper ? 'A' : 'a'); do - *p++ = start + (i % 26); + *p++ = itoc[i--%26]; while(i /= 26); while(p > temp) out << *--p;