Skip to content

Commit 41520a9

Browse files
committed
use Copy() instead of directly '='
1 parent 6610ba8 commit 41520a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1 Fundamental/1.3/1.3.49/StackQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public Item Dequeue()
7878
else if (!this.isRecopying && Lendiff() == 0)
7979
{
8080
Item temp = this.H.Pop();
81-
this.h = this.H;
81+
this.h = this.H.Copy();
8282
this.isRecopying = true;
8383
OneStep(OneStep(this));
8484
return temp;

0 commit comments

Comments
 (0)