summaryrefslogtreecommitdiff
path: root/contrib/unbound/sldns/parseutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/sldns/parseutil.c')
-rw-r--r--contrib/unbound/sldns/parseutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/unbound/sldns/parseutil.c b/contrib/unbound/sldns/parseutil.c
index 82dbc0fe113e..3515d64c5d10 100644
--- a/contrib/unbound/sldns/parseutil.c
+++ b/contrib/unbound/sldns/parseutil.c
@@ -167,7 +167,7 @@ sldns_gmtime64_r(int64_t clock, struct tm *result)
static int64_t
sldns_serial_arithmetics_time(int32_t time, time_t now)
{
- int32_t offset = time - (int32_t) now;
+ int32_t offset = (int32_t)((uint32_t) time - (uint32_t) now);
return (int64_t) now + offset;
}