mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Replaced a += (combined addition and assignment) with an explicit assignment and addition to avoid compiler warnings.
This commit is contained in:
parent
4933bfaaa0
commit
aa69784495
@ -54,7 +54,7 @@ lwip_chksum(void *dataptr, int len)
|
|||||||
u32_t acc;
|
u32_t acc;
|
||||||
|
|
||||||
for(acc = 0; len > 1; len -= 2) {
|
for(acc = 0; len > 1; len -= 2) {
|
||||||
acc += *((u16_t *)dataptr)++;
|
acc = acc + *((u16_t *)dataptr)++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add up any odd byte */
|
/* add up any odd byte */
|
||||||
|
Loading…
Reference in New Issue
Block a user