chiark / gitweb /
new disorder-rtp deb
[disorder] / lib / timeval.h
index ff8ccf08191678b91257db58e236b605f96602d5..9ec8c31038307b3245aed9c411fa46743fc57f46 100644 (file)
@@ -38,8 +38,8 @@ static inline struct timeval tvsub(const struct timeval a,
   return r;
 }
 
-static inline uint64_t tvsub_us(const struct timeval a,
-                                const struct timeval b) {
+static inline int64_t tvsub_us(const struct timeval a,
+                               const struct timeval b) {
   return (((uint64_t)a.tv_sec * 1000000 + a.tv_usec)
           - ((uint64_t)b.tv_sec * 1000000 + b.tv_usec));
 }