diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2020-01-20 14:44:15 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 2020-01-20 15:03:11 -0500 |
commit | 09d76c1dd5e45c5512db997e52234dd2ddab8c2d (patch) | |
tree | 4aa44bca5fb6dc22c41c21742789faae16515e01 | |
parent | 91b7beaef91b60fbde13dadf86091e57c8245008 (diff) | |
download | elfutils-09d76c1dd5e45c5512db997e52234dd2ddab8c2d.tar.gz |
PR25394 followup#2: debuginfod casting fixes
Buildbot still reports type warnings in time_t arithmetic.
Explicit (long)er cast pushed as obvious ... or is it? :-)
-rw-r--r-- | debuginfod/debuginfod.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 06375089..b0299a13 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -2493,7 +2493,7 @@ thread_main_fts_source_paths (void* arg) bool rescan_now = false; if (last_rescan == 0) // at least one initial rescan is documented even for -t0 rescan_now = true; - if (rescan_s > 0 && (long)now > (long)last_rescan + rescan_s) + if (rescan_s > 0 && (long)now > (long)(last_rescan + rescan_s)) rescan_now = true; if (sigusr1 != forced_rescan_count) { @@ -2636,7 +2636,7 @@ thread_main_groom (void* /*arg*/) bool groom_now = false; if (last_groom == 0) // at least one initial groom is documented even for -g0 groom_now = true; - if (groom_s > 0 && (long)now > (long)last_groom + groom_s) + if (groom_s > 0 && (long)now > (long)(last_groom + groom_s)) groom_now = true; if (sigusr2 != forced_groom_count) { |