diff -ru wget-1.21.3.org/src/gnutls.c wget-1.21.3/src/gnutls.c --- wget-1.21.3.org/src/gnutls.c 2022-02-26 15:47:42.000000000 +0100 +++ wget-1.21.3/src/gnutls.c 2022-06-21 20:51:40.244552644 +0200 @@ -1085,7 +1085,7 @@ logprintf (LOG_NOTQUIET, _("The certificate has not yet been activated\n")); success = false; } - if (now >= gnutls_x509_crt_get_expiration_time (cert)) + if (now >= (unsigned long) gnutls_x509_crt_get_expiration_time (cert)) { logprintf (LOG_NOTQUIET, _("The certificate has expired\n")); success = false;