diff options
author | Thomas Habets <habets@google.com> | 2019-11-01 17:23:23 +0000 |
---|---|---|
committer | Thomas Habets <habets@google.com> | 2019-11-01 17:23:23 +0000 |
commit | 1322eeab7c338a0645e1baf2813a96ebeb1f8fc1 (patch) | |
tree | e0304a33a76992f2b5c41730ef40a7cd7218bbe5 | |
parent | 636299ae0e22132dc57687c43c4c1e0278892b77 (diff) | |
download | arping-1322eeab7c338a0645e1baf2813a96ebeb1f8fc1.tar.gz |
Suppress linter warning about loss of fraction
-rw-r--r-- | src/arping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arping.c b/src/arping.c index 575aba3..5642598 100644 --- a/src/arping.c +++ b/src/arping.c @@ -911,7 +911,7 @@ wait_time(double deadline, uint32_t packetwait) if (max_wait < 0) { return 0; } - if (max_wait > (double)(packetwait / 1000000)) { + if (max_wait > packetwait / 1000000.0) { return packetwait; } return max_wait * 1000000; |