mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-18 15:18:17 +00:00
Fix Possible misuse of comma operator here (#1851)
Xcode warns about "Possible misuse of comma operator here". Comma is a sequencing operator in C++ and original code does work, but is highly non-idiomatic.
This commit is contained in:
@ -605,7 +605,11 @@ _next_match:
|
||||
*token += ML_MASK;
|
||||
matchCode -= ML_MASK;
|
||||
LZ4_write32(op, 0xFFFFFFFF);
|
||||
while (matchCode >= 4*255) op+=4, LZ4_write32(op, 0xFFFFFFFF), matchCode -= 4*255;
|
||||
while (matchCode >= 4*255) {
|
||||
op+=4;
|
||||
LZ4_write32(op, 0xFFFFFFFF);
|
||||
matchCode -= 4*255;
|
||||
}
|
||||
op += matchCode / 255;
|
||||
*op++ = (BYTE)(matchCode % 255);
|
||||
} else
|
||||
|
Reference in New Issue
Block a user