mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-14 03:06:54 +02: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:
parent
be95b56c10
commit
a59f82093a
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue