coverity 83683 test ping more uint64_t needed
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
28e2ab6a97
commit
b743623ff4
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ callback_lws_mirror(struct libwebsocket_context * this,
|
|||
struct timeval tv;
|
||||
unsigned char *p;
|
||||
int shift;
|
||||
unsigned long l;
|
||||
uint64_t l;
|
||||
unsigned long iv;
|
||||
int n;
|
||||
int match = 0;
|
||||
|
@ -161,7 +161,7 @@ callback_lws_mirror(struct libwebsocket_context * this,
|
|||
l = 0;
|
||||
|
||||
while (shift >= 0) {
|
||||
l |= (*p++) << shift;
|
||||
l |= ((uint64_t)*p++) << shift;
|
||||
shift -= 8;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue