diff Limits/UnlimitedLimit.cs @ 55:b52c2511a1e3

Re #24: Add limit objects * Change "unlimited" to return the largest integer possible (int.MaxValue), since its limit as a double is infinity
author IBBoard <dev@ibboard.co.uk>
date Fri, 23 Oct 2009 19:05:28 +0000
parents 12117b04ebc1
children 44bc5bd5c2f3
line wrap: on
line diff
--- a/Limits/UnlimitedLimit.cs	Thu Oct 22 19:33:09 2009 +0000
+++ b/Limits/UnlimitedLimit.cs	Fri Oct 23 19:05:28 2009 +0000
@@ -7,7 +7,7 @@
 namespace IBBoard.Limits
 {
 	/// <summary>
-	/// A special case "infinite" limit that always returns the number it is limited against.
+	/// A special case "infinite" limit that always returns the integer number closest to infinity.
 	/// </summary>
 	public class UnlimitedLimit : AbstractLimit
 	{
@@ -17,7 +17,7 @@
 				
 		public override int GetLimit (int size)
 		{
-			return size;
+			return int.MaxValue;
 		}
 	}
 }