glib r7304 - in trunk: . tests



Author: tml
Date: Mon Aug  4 18:12:11 2008
New Revision: 7304
URL: http://svn.gnome.org/viewvc/glib?rev=7304&view=rev

Log:
2008-08-04  Tor Lillqvist  <tml novell com>

	* tests/testglib.c: Avoid warning on Win64 by using gintptr cast
	instead if long cast.



Modified:
   trunk/ChangeLog
   trunk/tests/testglib.c

Modified: trunk/tests/testglib.c
==============================================================================
--- trunk/tests/testglib.c	(original)
+++ trunk/tests/testglib.c	Mon Aug  4 18:12:11 2008
@@ -242,7 +242,7 @@
   gchar *string;
   gchar c[2] = "_";
 
-  c[0] = ((gchar) ((long) (node->data)));
+  c[0] = ((gchar) ((gintptr) (node->data)));
 
   string = g_strconcat (*p ? *p : "", c, NULL);
   g_free (*p);
@@ -255,7 +255,7 @@
 gnode_test (void)
 {
 #define	C2P(c)		((gpointer) ((long) (c)))
-#define	P2C(p)		((gchar) ((long) (p)))
+#define	P2C(p)		((gchar) ((gintptr) (p)))
   GNode *root;
   GNode *node;
   GNode *node_B;



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