gtk+ r21002 - in trunk: . gtk



Author: tml
Date: Mon Aug  4 23:51:16 2008
New Revision: 21002
URL: http://svn.gnome.org/viewvc/gtk+?rev=21002&view=rev

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

	* gtk/gtkgc.c: Cast tile, stipple and clip_mask pointers to
	gintptr when calculating hash, so we get all of the pointer bits
	on Win64 where long is 32 bits.



Modified:
   trunk/ChangeLog
   trunk/gtk/gtkgc.c

Modified: trunk/gtk/gtkgc.c
==============================================================================
--- trunk/gtk/gtkgc.c	(original)
+++ trunk/gtk/gtkgc.c	Mon Aug  4 23:51:16 2008
@@ -222,15 +222,15 @@
     }
   if (keyval->mask & GDK_GC_TILE)
     {
-      hash_val += (glong) keyval->values.tile;
+      hash_val += (gintptr) keyval->values.tile;
     }
   if (keyval->mask & GDK_GC_STIPPLE)
     {
-      hash_val += (glong) keyval->values.stipple;
+      hash_val += (gintptr) keyval->values.stipple;
     }
   if (keyval->mask & GDK_GC_CLIP_MASK)
     {
-      hash_val += (glong) keyval->values.clip_mask;
+      hash_val += (gintptr) keyval->values.clip_mask;
     }
   if (keyval->mask & GDK_GC_SUBWINDOW)
     {



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