fix warning
authorVincent Torri <vincent.torri@gmail.com>
Fri, 10 Dec 2010 23:45:29 +0000 (23:45 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Fri, 10 Dec 2010 23:45:29 +0000 (23:45 +0000)
SVN revision: 55472

legacy/evil/AUTHORS
legacy/evil/ChangeLog
legacy/evil/src/lib/evil_unistd.c

index 6cf170748f6d5c6c1bb915ada6dca61ea5cc3959..226283dce145952e5f1e11e205770d6f43b1b15b 100644 (file)
@@ -1,4 +1,5 @@
 Main Authors:
      Vincent Torri <vtorri at univ-evry dot fr>
      Tor Lillqvist <tml at iki dot fi> (pipe function)
-     ashikase
+     Lance Fetters
+     Vincent Richomme <vrichomme at smartmobili dot com>
index 63830849ffc1b4f0115f81d184000ce9d7856fec..b883e2911e95c2d9ca8e1752979f8c29d9028d4c 100644 (file)
@@ -1,3 +1,11 @@
+2010-12-10  Vincent Torri  <doursse at users dot sf dot net>
+
+       reviewed by: Vincent Torri
+       patch by: Vincent Richomme
+
+       * src/lib/evil_unistd.c:
+       remove warning
+
 2010-11-06  Vincent Torri  <doursse at users dot sf dot net>
 
        * src/lib/Evil.h:
index 6dcf4cad4d231767b664ccfb422ff2327877a52d..897c86abab5679e42c97266c64c4bea837229fab 100644 (file)
@@ -72,8 +72,8 @@ evil_gettimeofday(struct timeval *tp, void *tzp __UNUSED__)
 
    QueryPerformanceCounter(&count);
    diff = count.QuadPart - _evil_time_count;
-   tp->tv_sec = _evil_time_second + diff / _evil_time_freq;
-   tp->tv_usec = ((diff % _evil_time_freq) * 1000000ll) / _evil_time_freq;
+   tp->tv_sec = _evil_time_second + (long)(diff / _evil_time_freq);
+   tp->tv_usec = (long)(((diff % _evil_time_freq) * 1000000ll) / _evil_time_freq);
 
    return 1;
 }