summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-03-22 21:40:35 +0100
committerMaria Matejka <mq@ucw.cz>2019-03-22 21:40:35 +0100
commit7078aa63ae498b55c729df4a075eb28019917e81 (patch)
tree5c7f83889d05e9998d1574b3097ae8e3e7e2a3c1 /sysdep
parent2ab680c6972306db71d9a8d4ee4fabf265981d30 (diff)
Fixed one warning and one undefined value.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index d1d86e3b..5b0e49c1 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -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;