[libsoup] SoupDate: bump soup_date_is_past() optimization
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] SoupDate: bump soup_date_is_past() optimization
- Date: Thu, 16 Jan 2020 15:10:27 +0000 (UTC)
commit b9d34b0e9ed6ff68cd265091c5a67dcd88f3a703
Author: Claudio Saavedra <csaavedra igalia com>
Date: Thu Jan 16 17:07:50 2020 +0200
SoupDate: bump soup_date_is_past() optimization
libsoup/soup-date.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libsoup/soup-date.c b/libsoup/soup-date.c
index 92e46ebb..349e8cc0 100644
--- a/libsoup/soup-date.c
+++ b/libsoup/soup-date.c
@@ -760,7 +760,7 @@ soup_date_is_past (SoupDate *date)
g_return_val_if_fail (date != NULL, TRUE);
/* optimization */
- if (date->year < 2010)
+ if (date->year < 2020)
return TRUE;
return soup_date_to_time_t (date) < time (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]