changeset 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 9a0009bc4455
children 1e5080813ac5
files Limits/UnlimitedLimit.cs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;
 		}
 	}
 }