2002-09-13 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / System / Int64.cs
index a25e42e3725547098a9a1ee247100d02fc3e09c9..f057aa8d87df4f88c06f331c3b98e564ba8c0ea5 100644 (file)
@@ -18,7 +18,7 @@ namespace System {
                public const long MaxValue = 0x7fffffffffffffff;
                public const long MinValue = -9223372036854775808;
                
-               public long value;
+               internal long value;
 
                public int CompareTo (object v)
                {
@@ -307,7 +307,7 @@ namespace System {
                                        pos = Int32.JumpOverWhite (pos, s, false);
                        }
 
-                       if (pos < s.Length)
+                       if (pos < s.Length && s [pos] != '\u0000')
                                throw new FormatException ("Input string was not in the correct format: Did not parse entire string. pos = " 
                                                                                + pos + " s.Length = " + s.Length);