Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78941 --- shadow/78941 2006-08-02 15:11:04.000000000 -0400 +++ shadow/78941.tmp.31825 2006-08-02 15:13:49.000000000 -0400 @@ -89,6 +89,15 @@ breaking other things. Please ignore the first inline patch above. ------- Additional Comments From [EMAIL PROTECTED] 2006-08-02 15:11 ------- Created an attachment (id=17393) Queue patch, 3rd attempt + +------- Additional Comments From [EMAIL PROTECTED] 2006-08-02 15:13 ------- +My second patch was unfortunately flawed too, calling TrimToSize() on +an empty Queue would lead to a division by 0. + +I'm confident that this third attempt is now correct. Simply setting +_tail to 0 in TrimToSize() is valid because _tail should be set to +(_head + _size) % _array.Length, which is 0 because _array.Length == +_size and _head == 0 at this point. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
