projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2002-08-21 Miguel de Icaza <miguel@ximian.com>
[mono.git]
/
mcs
/
class
/
corlib
/
System
/
IntegerFormatter.cs
diff --git
a/mcs/class/corlib/System/IntegerFormatter.cs
b/mcs/class/corlib/System/IntegerFormatter.cs
index cf162fac9a6272d99696161cbed61a7bb9723b02..b53ad1f46b68c991ba634fc258b9d8631664c220 100644
(file)
--- a/
mcs/class/corlib/System/IntegerFormatter.cs
+++ b/
mcs/class/corlib/System/IntegerFormatter.cs
@@
-3784,6
+3784,9
@@
class FormatParse {
if (signValue == 0 && nsections > 1)
section = 2;
+ if (number [0] == '-')
+ number = number.Substring (1);
+
FormatSection sec = sections [section];
digits = AdjustDigits (number.ToString (), sec);
if (digits.Length == 1 && digits [0] == '0')