forked from osmocom/wireshark
Fix error when build with clang 3.0
wiretap/lanalyzer.c:643:24: error: implicit conversion loses integer precision: 'const __suseconds_t' (aka 'const long') to 'gint32' (aka 'int') [-Werror,-Wshorten-64-to-32] gint32 usec = a->tv_usec; ~~~~ ~~~^~~~~~~ svn path=/trunk/; revision=51249
This commit is contained in:
parent
1abc2eb191
commit
36f3b77f6d
|
@ -640,7 +640,7 @@ static void my_timersub(const struct timeval *a,
|
|||
const struct timeval *b,
|
||||
struct timeval *c)
|
||||
{
|
||||
gint32 usec = a->tv_usec;
|
||||
gint32 usec = (gint32)a->tv_usec;
|
||||
|
||||
c->tv_sec = a->tv_sec - b->tv_sec;
|
||||
if (b->tv_usec > usec) {
|
||||
|
|
Loading…
Reference in New Issue