remove warning
[mono.git] / mcs / class / corlib / System / Double.cs
index f1acedc9b9f62e2f353a05f2df4845424fa4f28c..23198122acc40039ff119af139ebb7f3cfd0b7da 100644 (file)
@@ -42,6 +42,9 @@ using System.Runtime.ConstrainedExecution;
 namespace System {
        
        [Serializable]
+#if NET_2_0
+       [System.Runtime.InteropServices.ComVisible (true)]
+#endif
        public struct Double : IComparable, IFormattable, IConvertible
 #if NET_2_0
                , IComparable <double>, IEquatable <double>
@@ -210,7 +213,7 @@ namespace System {
                        return result;
                }
                
-               [MonoTODO("check if digits are group in correct numbers between the group separators")]
+               // FIXME: check if digits are group in correct numbers between the group separators
                internal static bool Parse (string s, NumberStyles style, IFormatProvider provider, bool tryParse, out double result, out Exception exc)
                {
                        result = 0;
@@ -271,7 +274,7 @@ namespace System {
                                if (sidx == len) {
                                        if (!tryParse)
                                                exc = Int32.GetFormatException ();
-                                       return true;
+                                       return false;
                                }
                        }
 
@@ -445,7 +448,7 @@ namespace System {
 
                                case State_ConsumeWhiteSpace:
                                        if (allow_trailing_white && Char.IsWhiteSpace (c)) {
-                                               state = State_Exit;
+                                               state = State_ConsumeWhiteSpace;
                                                break;
                                        }