gedit r6915 - in trunk: . gedit
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6915 - in trunk: . gedit
- Date: Mon, 23 Feb 2009 09:42:47 +0000 (UTC)
Author: pborelli
Date: Mon Feb 23 09:42:47 2009
New Revision: 6915
URL: http://svn.gnome.org/viewvc/gedit?rev=6915&view=rev
Log:
2009-02-23 Paolo Borelli <pborelli katamail com>
* gedit/gedit-utils.h: fix compiler warning on 64 bit in the
boolean to pointer macros
Modified:
trunk/ChangeLog
trunk/gedit/gedit-utils.h
Modified: trunk/gedit/gedit-utils.h
==============================================================================
--- trunk/gedit/gedit-utils.h (original)
+++ trunk/gedit/gedit-utils.h Mon Feb 23 09:42:47 2009
@@ -41,8 +41,8 @@
G_BEGIN_DECLS
/* useful macro */
-#define GBOOLEAN_TO_POINTER(i) ((gpointer) ((i) ? 2 : 1))
-#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((((gint)(i)) == 2) ? TRUE : FALSE))
+#define GBOOLEAN_TO_POINTER(i) (GINT_TO_POINTER ((i) ? 2 : 1))
+#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((GPOINTER_TO_INT(i) == 2) ? TRUE : FALSE))
#define IS_VALID_BOOLEAN(v) (((v == TRUE) || (v == FALSE)) ? TRUE : FALSE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]