summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2018-04-22 12:09:05 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2018-04-22 12:09:05 +0000
commit842513f10b61c799d94a0b088d656517a82f255b (patch)
treecd2d2a4a9044a60dffc30873145dea7104c7a69e
parent70b6ca4376cb822487b61692187283c528fb426c (diff)
downloadnetsurf-842513f10b61c799d94a0b088d656517a82f255b.tar.gz
netsurf-842513f10b61c799d94a0b088d656517a82f255b.tar.bz2
URLdb: fix comparison
-rw-r--r--content/urldb.c2
1 files changed, 1 insertions, 1 deletions
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;
}