diff options
author | Cy Schubert <cy@FreeBSD.org> | 2020-08-21 22:56:05 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2020-08-21 22:56:05 +0000 |
commit | 7973006f41cdaf144441d1a39f9f075053435e2f (patch) | |
tree | 157d55b04796bb6f041656c0e84dd5106f4bc4be /sldns/parseutil.c | |
parent | 6a53c00e64c4cf911eb00846733d9e6a47b2e7f4 (diff) |
Diffstat (limited to 'sldns/parseutil.c')
-rw-r--r-- | sldns/parseutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sldns/parseutil.c b/sldns/parseutil.c index 82dbc0fe113ea..3515d64c5d102 100644 --- a/sldns/parseutil.c +++ b/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; } |