Author: atsushi
Date: 2007-11-22 03:53:08 -0500 (Thu, 22 Nov 2007)
New Revision: 90127
Modified:
trunk/mcs/class/System.Core/System.Linq/ChangeLog
trunk/mcs/class/System.Core/System.Linq/Enumerable.cs
Log:
2007-11-22 Atsushi Enomoto <[EMAIL PROTECTED]>
* Enumerable.cs : fixed Range(int,int) that iterated one less.
Thanks to http://d.hatena.ne.jp/NyaRuRu/ .
Modified: trunk/mcs/class/System.Core/System.Linq/ChangeLog
===================================================================
--- trunk/mcs/class/System.Core/System.Linq/ChangeLog 2007-11-22 07:08:19 UTC
(rev 90126)
+++ trunk/mcs/class/System.Core/System.Linq/ChangeLog 2007-11-22 08:53:08 UTC
(rev 90127)
@@ -1,3 +1,8 @@
+2007-11-22 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * Enumerable.cs : fixed Range(int,int) that iterated one less.
+ Thanks to http://d.hatena.ne.jp/NyaRuRu/ .
+
2007-11-13 Jb Evain <[EMAIL PROTECTED]>
* Enumerable.cs: make the new unit tests pass.
Modified: trunk/mcs/class/System.Core/System.Linq/Enumerable.cs
===================================================================
--- trunk/mcs/class/System.Core/System.Linq/Enumerable.cs 2007-11-22
07:08:19 UTC (rev 90126)
+++ trunk/mcs/class/System.Core/System.Linq/Enumerable.cs 2007-11-22
08:53:08 UTC (rev 90127)
@@ -1799,7 +1799,7 @@
if (count < 0 || upto > int.MaxValue)
throw new ArgumentOutOfRangeException ();
- for (int i = start; i < upto; i++)
+ for (int i = start; i <= upto; i++)
yield return i;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches