From 842513f10b61c799d94a0b088d656517a82f255b Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sun, 22 Apr 2018 12:09:05 +0000 Subject: URLdb: fix comparison --- content/urldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/urldb.c b/content/urldb.c index 242a29c6c..4bdb10e66 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -3557,7 +3557,7 @@ bool urldb_set_hsts_policy(struct nsurl *url, const char *header) if (max_age == 0) { h->hsts.expires = 0; h->hsts.include_sub_domains = false; - } else if (now + max_age > h->hsts.expires) { + } else if ((time_t) (now + max_age) > h->hsts.expires) { h->hsts.expires = now + max_age; } -- cgit v1.2.3