coverity 83683 test ping more uint64_t needed

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2014-11-30 13:37:23 +08:00
parent 28e2ab6a97
commit b743623ff4

View file

@ -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;
}