]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - sysdep/unix/io.c
Merge branch 'master' into mq-filter-stack
[thirdparty/bird.git] / sysdep / unix / io.c
index 3a1e22c5fd2da7d9389e6cc00b7d54ca59cc22e8..c9fee3ab371d6a1368c2c1839b72150682214d30 100644 (file)
@@ -132,7 +132,7 @@ times_init(struct timeloop *loop)
   if (rv < 0)
     die("Monotonic clock is missing");
 
-  if ((ts.tv_sec < 0) || (((s64) ts.tv_sec) > ((s64) 1 << 40)))
+  if ((ts.tv_sec < 0) || (((u64) ts.tv_sec) > ((u64) 1 << 40)))
     log(L_WARN "Monotonic clock is crazy");
 
   loop->last_time = ts.tv_sec S + ts.tv_nsec NS;