https://bugzilla.novell.com/show_bug.cgi?id=324019
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=324019#c1 Piyush Kasliwal <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] --- Comment #1 from Piyush Kasliwal <[EMAIL PROTECTED]> 2007-12-07 19:35:52 MST --- Index: class/corlib/System/Int32.cs =================================================================== --- class/corlib/System/Int32.cs (revision 86999) +++ class/corlib/System/Int32.cs (working copy) @@ -494,6 +494,8 @@ exc = GetFormatException (); return false; } + if (AllowTrailingWhite && pos < s.Length && !JumpOverWhite (ref pos, s, false, tryParse, ref exc)) + return false; if (AllowExponent) FindExponent(ref pos, s); @@ -514,7 +516,7 @@ // Currency + sign FindCurrency (ref pos, s, nfi, ref foundCurrency); if (foundCurrency) { - if (AllowTrailingWhite && !JumpOverWhite (ref pos, s, true, tryParse, ref exc)) + if (AllowTrailingWhite && pos < s.Length && !JumpOverWhite (ref pos, s, true, tryParse, ref exc)) return false; if (!foundSign && AllowTrailingSign) FindSign (ref pos, s, nfi, ref foundSign, -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
