diff options
Diffstat (limited to '')
-rw-r--r-- | src/stable/formatter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stable/formatter.h b/src/stable/formatter.h index 493bca4..fc430f3 100644 --- a/src/stable/formatter.h +++ b/src/stable/formatter.h | |||
@@ -90,6 +90,14 @@ namespace Bu | |||
90 | { | 90 | { |
91 | int c = i%fLast.uRadix; | 91 | int c = i%fLast.uRadix; |
92 | i /= fLast.uRadix; | 92 | i /= fLast.uRadix; |
93 | |||
94 | // I'm not thrilled with this solution, but it's the best I can | ||
95 | // do right now. I'll have to give this more thought later. | ||
96 | if( i < 0 ) | ||
97 | { | ||
98 | i = -i; | ||
99 | c = -c; | ||
100 | } | ||
93 | buf[j] = (char)((c<10)?('0'+c):(cBase+c-10)); | 101 | buf[j] = (char)((c<10)?('0'+c):(cBase+c-10)); |
94 | if( i == 0 ) | 102 | if( i == 0 ) |
95 | { | 103 | { |