[glib] Use G_GINT64_CONSTANT here



commit ab02965c50b8b80a2a676888f5aa4c36cbc7c3df
Author: Christian Persch <chpe gnome org>
Date:   Sat Oct 30 21:40:28 2010 -0400

    Use G_GINT64_CONSTANT here
    
    Bug #631482.

 glib/gdatetime.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gdatetime.c b/glib/gdatetime.c
index 4ad3807..f51c400 100644
--- a/glib/gdatetime.c
+++ b/glib/gdatetime.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]