date.c: abort if the system time cannot handle one of our timestamps
[gitweb.git] / config.c
index 1a4d85537b3c96749999250a34216257db134714..3247bfaa0205eaab4ad6282e4661ed1a637215f0 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1926,7 +1926,7 @@ int git_config_get_expiry(const char *key, const char **output)
        if (ret)
                return ret;
        if (strcmp(*output, "now")) {
-               unsigned long now = approxidate("now");
+               timestamp_t now = approxidate("now");
                if (approxidate(*output) >= now)
                        git_die_config(key, _("Invalid %s: '%s'"), key, *output);
        }