We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0454c0 commit 003c17aCopy full SHA for 003c17a
projects/client/RabbitMQ.Client/src/util/IntAllocator.cs
@@ -155,7 +155,7 @@ public int Allocate()
155
return unsorted[--unsortedCount];
156
} else if (Base != null) {
157
int result = Base.Start++;
158
- if(Base.Start == Base.End) Base = Base.Next;
+ if(Base.Start > Base.End) Base = Base.Next;
159
return result;
160
} else {
161
return -1;
0 commit comments