Author: rgrabowski Date: Thu Oct 12 10:13:28 2006 New Revision: 463328 URL: http://svn.apache.org/viewvc?view=rev&rev=463328 Log: Fix for LOG4NET-95: Replaced subtraction operator used to compare internal Level values with System.Int32's CompareTo to avoid possible overflow issues. All tests continue to pass.
Modified: logging/log4net/trunk/src/Core/Level.cs Modified: logging/log4net/trunk/src/Core/Level.cs URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Core/Level.cs?view=diff&rev=463328&r1=463327&r2=463328 ============================================================================== --- logging/log4net/trunk/src/Core/Level.cs (original) +++ logging/log4net/trunk/src/Core/Level.cs Thu Oct 12 10:13:28 2006 @@ -485,7 +485,7 @@ return 1; } - return l.m_levelValue - r.m_levelValue; + return l.m_levelValue.CompareTo(r.m_levelValue); } #endregion Public Static Methods