[Xfce4-commits] [xfce/xfwm4] 01/01: Fix bit mask on 32-bit system

noreply at xfce.org noreply at xfce.org
Sat Jan 10 12:41:05 CET 2015


This is an automated email from the git hooks/post-receive script.

olivier pushed a commit to branch master
in repository xfce/xfwm4.

commit ffc10a046e0c45e301fcfb255d66cb544718d26f
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Sat Jan 10 12:38:43 2015 +0100

    Fix bit mask on 32-bit system
    
    Bug: 11440
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/hints.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hints.c b/src/hints.c
index 83ee2dc..b365d01 100644
--- a/src/hints.c
+++ b/src/hints.c
@@ -242,7 +242,7 @@ getHint (DisplayInfo *display_info, Window w, int atom_id, long *value)
                              FALSE, XA_CARDINAL, &real_type, &real_format, &items_read, &items_left,
                              (unsigned char **) &data) == Success) && (items_read))
     {
-        *value = *((long *) data) & ((1L << real_format) - 1);
+        *value = *((long *) data) & ((1LL << real_format) - 1);
         if (data)
         {
             XFree (data);
@@ -507,7 +507,7 @@ getCardinalList (DisplayInfo *display_info, Window w, int atom_id, unsigned long
     *n_cardinals_p = n_cardinals;
     for (i = 0; i < n_cardinals; i++)
     {
-        (*cardinals_p)[i] = (*cardinals_p)[i] & ((1L << format) - 1);
+        (*cardinals_p)[i] = (*cardinals_p)[i] & ((1LL << format) - 1);
     }
 
     return TRUE;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list