From: Emmanuel Rodriguez Date: Fri, 27 Mar 2009 19:53:02 +0000 (+0100) Subject: Cache expiration creates an compilation error on 32bit systems. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=491a979167aae8c47684ad0fb718a65596ee1d2c;p=libchamplain 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. --- 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);