aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-10-01 00:24:50 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-10-01 10:47:37 +0200
commit69d95b6d4c3dce64e58bd36d998ee10ae4da0f34 (patch)
treef6870b27077ed720a3b9fdcca3c443b1781396a2 /lib/hostip.c
parent68b0aac2f81251607cf803d92cd29b17388941fb (diff)
lib: silence conversion warnings
Closes https://github.com/curl/curl/pull/4444
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index bd532a891..d4e8f9366 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -749,7 +749,7 @@ clean_up:
conn->created) / 1000;
/* the alarm period is counted in even number of seconds */
- unsigned long alarm_set = prev_alarm - elapsed_secs;
+ unsigned long alarm_set = (unsigned long)(prev_alarm - elapsed_secs);
if(!alarm_set ||
((alarm_set >= 0x80000000) && (prev_alarm < 0x80000000)) ) {