[Xfce4-commits] r25851 - in thunar/trunk: . thunar-vfs

Benedikt Meurer benny at xfce.org
Sun Jun 24 18:30:48 CEST 2007


Author: benny
Date: 2007-06-24 16:30:47 +0000 (Sun, 24 Jun 2007)
New Revision: 25851

Modified:
   thunar/trunk/ChangeLog
   thunar/trunk/thunar-vfs/thunar-vfs-path.c
Log:
2007-06-24	Benedikt Meurer <benny at xfce.org>

	* thunar-vfs/thunar-vfs-path.c: Fix crash on amd64 because of
	  invalid size of integer constants. Bug #3303.




Modified: thunar/trunk/ChangeLog
===================================================================
--- thunar/trunk/ChangeLog	2007-06-24 12:10:24 UTC (rev 25850)
+++ thunar/trunk/ChangeLog	2007-06-24 16:30:47 UTC (rev 25851)
@@ -1,3 +1,8 @@
+2007-06-24	Benedikt Meurer <benny at xfce.org>
+
+	* thunar-vfs/thunar-vfs-path.c: Fix crash on amd64 because of
+	  invalid size of integer constants. Bug #3303.
+
 2007-05-25	Benedikt Meurer <benny at xfce.org>
 
 	* thunar/thunar-dialogs.c(thunar_dialogs_show_about): Add support

Modified: thunar/trunk/thunar-vfs/thunar-vfs-path.c
===================================================================
--- thunar/trunk/thunar-vfs/thunar-vfs-path.c	2007-06-24 12:10:24 UTC (rev 25850)
+++ thunar/trunk/thunar-vfs/thunar-vfs-path.c	2007-06-24 16:30:47 UTC (rev 25851)
@@ -46,11 +46,11 @@
 
 /* Masks to handle the 4-byte aligned path names */
 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
-#define THUNAR_VFS_PATH_MASK (0xffu << ((sizeof (gsize) - 1) * 8))
+#define THUNAR_VFS_PATH_MASK (((gsize) 0xffu) << ((sizeof (gsize) - 1) * 8))
 #define THUNAR_VFS_PATH_ROOT (0x2fu)
 #elif G_BYTE_ORDER == G_BIG_ENDIAN
 #define THUNAR_VFS_PATH_MASK (0xffu)
-#define THUNAR_VFS_PATH_ROOT (0x2fu << ((sizeof (gsize) - 1) * 8))
+#define THUNAR_VFS_PATH_ROOT (((gsize) 0x2fu) << ((sizeof (gsize) - 1) * 8))
 #else
 #error "Unsupported endianess"
 #endif



More information about the Xfce4-commits mailing list