From d923d1f03f48fdc22a62362b2f7a4a6ddc4aec1e Mon Sep 17 00:00:00 2001 From: Stepan Kasal Date: Wed, 24 Aug 2005 14:14:02 +0000 Subject: [PATCH] (G_MININT64): Cast to gint64. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ glib/gtypes.h | 2 +- 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3f0aaf438..f569b8872 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-08-24 Stepan Kasal + + * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is + guint64 otherwise and that can produce warnings about comparison + between signed and unsigned. + 2005-08-23 Matthias Clasen * glib/gutils.c: Fix the crt_externs.h include. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 3f0aaf438..f569b8872 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-08-24 Stepan Kasal + + * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is + guint64 otherwise and that can produce warnings about comparison + between signed and unsigned. + 2005-08-23 Matthias Clasen * glib/gutils.c: Fix the crt_externs.h include. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 3f0aaf438..f569b8872 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2005-08-24 Stepan Kasal + + * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is + guint64 otherwise and that can produce warnings about comparison + between signed and unsigned. + 2005-08-23 Matthias Clasen * glib/gutils.c: Fix the crt_externs.h include. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 3f0aaf438..f569b8872 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2005-08-24 Stepan Kasal + + * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is + guint64 otherwise and that can produce warnings about comparison + between signed and unsigned. + 2005-08-23 Matthias Clasen * glib/gutils.c: Fix the crt_externs.h include. diff --git a/glib/gtypes.h b/glib/gtypes.h index 4c132c8dd..21b55e7c9 100644 --- a/glib/gtypes.h +++ b/glib/gtypes.h @@ -65,7 +65,7 @@ typedef double gdouble; #define G_MAXINT32 ((gint32) 0x7fffffff) #define G_MAXUINT32 ((guint32) 0xffffffff) -#define G_MININT64 G_GINT64_CONSTANT(0x8000000000000000) +#define G_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000)) #define G_MAXINT64 G_GINT64_CONSTANT(0x7fffffffffffffff) #define G_MAXUINT64 G_GINT64_CONSTANT(0xffffffffffffffffU)