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:
Alexis La Goutte 2013-08-10 21:27:17 +00:00
parent 1abc2eb191
commit 36f3b77f6d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {