# HG changeset patch # User IBBoard # Date 1256324728 0 # Node ID b52c2511a1e37d162b74b123e61d445a90bde04b # Parent 9a0009bc4455afa756b2d8d5b6d886dcf8b7eb1d Re #24: Add limit objects * Change "unlimited" to return the largest integer possible (int.MaxValue), since its limit as a double is infinity diff -r 9a0009bc4455 -r b52c2511a1e3 Limits/UnlimitedLimit.cs --- 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 { /// - /// 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. /// public class UnlimitedLimit : AbstractLimit { @@ -17,7 +17,7 @@ public override int GetLimit (int size) { - return size; + return int.MaxValue; } } }