Use G_GINT64_CONSTANT here
authorChristian Persch <chpe@gnome.org>
Sun, 31 Oct 2010 01:40:28 +0000 (21:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 Oct 2010 01:40:28 +0000 (21:40 -0400)
Bug #631482.

glib/gdatetime.c

index 4ad380784ce1d046648a4df6335cb258f272e137..f51c400fe196c5f4aacfef9a40a7c2288f070407 100644 (file)
@@ -481,7 +481,7 @@ g_date_time_from_instant (GTimeZone *tz,
   GDateTime *datetime;
   gint64 offset;
 
-  if (instant < 0 || instant > 1000000000000000000)
+  if (instant < 0 || instant > G_GINT64_CONSTANT (1000000000000000000))
     return NULL;
 
   datetime = g_date_time_alloc (tz);