From 491a979167aae8c47684ad0fb718a65596ee1d2c Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Fri, 27 Mar 2009 20:53:02 +0100 Subject: [PATCH] Cache expiration creates an compilation error on 32bit systems. Insert the calculation of the cache expiration, the compiler should inline the result and it's easier to understand. Add 'ul' to each number. --- champlain/champlain-network-map-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/champlain/champlain-network-map-source.c b/champlain/champlain-network-map-source.c index f037970..97c0d5f 100644 --- a/champlain/champlain-network-map-source.c +++ b/champlain/champlain-network-map-source.c @@ -518,7 +518,7 @@ champlain_network_map_source_get_tile (ChamplainMapSource *map_source, g_file_info_get_modification_time (info, date); g_get_current_time (now); - g_time_val_add (date, 86400000000); // Cache expires 1 day + g_time_val_add (date, (24ul * 60ul * 60ul * 1000ul * 1000ul)); // Cache expires 1 day use_cache = date->tv_sec > now->tv_sec; g_object_unref (file); -- 2.39.5