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 <[EMAIL PROTECTED]>

        * 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 <[EMAIL PROTECTED]>
+
+       * thunar-vfs/thunar-vfs-path.c: Fix crash on amd64 because of
+         invalid size of integer constants. Bug #3303.
+
 2007-05-25     Benedikt Meurer <[EMAIL PROTECTED]>
 
        * 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

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to