dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections Queue.cs,


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections Queue.cs,1.3,1.4
Date: Sat, 22 Feb 2003 00:17:11 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections
In directory subversions:/tmp/cvs-serv29646/runtime/System/Collections

Modified Files:
        Queue.cs 
Log Message:


Bug in Queue.Enqueue() - the new item was not pushed when
the queue was reallocated.


Index: Queue.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections/Queue.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Queue.cs    29 Nov 2002 03:28:30 -0000      1.3
--- Queue.cs    22 Feb 2003 05:17:08 -0000      1.4
***************
*** 261,264 ****
--- 261,267 ----
                                        add = size;
                                        remove = 0;
+                                       items[add] = obj;
+                                       add = (add + 1) % items.Length;
+                                       ++size;
                                }
                                ++generation;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]