remove warning
[mono.git] / mcs / class / corlib / System / Double.cs
index 356794c8f9b8a0063516a9242f492a8fb3e6f4a0..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>
@@ -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;
                                        }