]> err.no Git - libchamplain/commitdiff
Cache expiration creates an compilation error on 32bit systems.
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Fri, 27 Mar 2009 19:53:02 +0000 (20:53 +0100)
committerEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Fri, 27 Mar 2009 19:53:02 +0000 (20:53 +0100)
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

index f03797028bc02e2060663d3251a6518e7fdca295..97c0d5f5ca75aeb9cc094ff6b60caf0e66461358 100644 (file)
@@ -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);