Small async fixes for AsyncQueue and over-/underflow for IPAddress
This commit is contained in:
@@ -18,6 +18,9 @@
|
||||
{
|
||||
bytes[bytePos] = 0;
|
||||
bytePos--;
|
||||
|
||||
if (bytePos < 0)
|
||||
return new IPAddress(bytes);
|
||||
}
|
||||
bytes[bytePos]++;
|
||||
|
||||
@@ -37,6 +40,9 @@
|
||||
{
|
||||
bytes[bytePos] = byte.MaxValue;
|
||||
bytePos--;
|
||||
|
||||
if (bytePos < 0)
|
||||
return new IPAddress(bytes);
|
||||
}
|
||||
bytes[bytePos]--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user