Author: gonzalo
Date: 2005-03-11 15:53:39 -0500 (Fri, 11 Mar 2005)
New Revision: 41718
Modified:
branches/mono-1-0/mcs/class/corlib/System/ChangeLog
branches/mono-1-0/mcs/class/corlib/System/Version.cs
Log:
2005-03-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* Version.cs: don't ignore the last number. Fixes bug #73539.
Modified: branches/mono-1-0/mcs/class/corlib/System/ChangeLog
===================================================================
--- branches/mono-1-0/mcs/class/corlib/System/ChangeLog 2005-03-11 20:52:27 UTC
(rev 41717)
+++ branches/mono-1-0/mcs/class/corlib/System/ChangeLog 2005-03-11 20:53:39 UTC
(rev 41718)
@@ -1,3 +1,7 @@
+2005-03-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * Version.cs: don't ignore the last number. Fixes bug #73539.
+
2005-03-09 Zoltan Varga <[EMAIL PROTECTED]>
* Activator.cs MonoType.cs: Applied patch from Carlos Alberto Cortez
Modified: branches/mono-1-0/mcs/class/corlib/System/Version.cs
===================================================================
--- branches/mono-1-0/mcs/class/corlib/System/Version.cs 2005-03-11
20:52:27 UTC (rev 41717)
+++ branches/mono-1-0/mcs/class/corlib/System/Version.cs 2005-03-11
20:53:39 UTC (rev 41718)
@@ -340,6 +340,24 @@
if (state == 5)
break;
}
+
+ // Last number
+ if (number >= 0) {
+ switch (state) {
+ case 1:
+ major = number;
+ break;
+ case 2:
+ minor = number;
+ break;
+ case 3:
+ build = number;
+ break;
+ case 4:
+ revision = number;
+ break;
+ }
+ }
return new Version (major, minor, build, revision);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches