mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-15 02:08:08 +08:00
Squash warning
This commit is contained in:
parent
6615a821f1
commit
da28213613
@ -5800,7 +5800,7 @@ static size_t mkhdr(size_t len, int op, bool is_client, uint8_t *buf) {
|
||||
} else {
|
||||
uint32_t tmp;
|
||||
buf[1] = 127;
|
||||
tmp = mg_htonl((uint32_t) (len >> 32));
|
||||
tmp = mg_htonl((uint32_t) (((uint64_t) len) >> 32));
|
||||
memcpy(&buf[2], &tmp, sizeof(tmp));
|
||||
tmp = mg_htonl((uint32_t) (len & 0xffffffffU));
|
||||
memcpy(&buf[6], &tmp, sizeof(tmp));
|
||||
|
2
src/ws.c
2
src/ws.c
@ -110,7 +110,7 @@ static size_t mkhdr(size_t len, int op, bool is_client, uint8_t *buf) {
|
||||
} else {
|
||||
uint32_t tmp;
|
||||
buf[1] = 127;
|
||||
tmp = mg_htonl((uint32_t) (len >> 32));
|
||||
tmp = mg_htonl((uint32_t) (((uint64_t) len) >> 32));
|
||||
memcpy(&buf[2], &tmp, sizeof(tmp));
|
||||
tmp = mg_htonl((uint32_t) (len & 0xffffffffU));
|
||||
memcpy(&buf[6], &tmp, sizeof(tmp));
|
||||
|
Loading…
x
Reference in New Issue
Block a user