cedric pushed a commit to branch master.


commit 445b3587e321c74fa23c401dda567dd5b27257b8
Author: Piotr Ganicz <p.gan...@samsung.com>
Date:   Tue Sep 20 14:44:53 2016 -0700

    atspi: fix state macros
    This patch changes the value of 1 to 1ULL in STATE_TYPE macros
    to signal the compiler that the value must be considered
    as a unsigned long long, it has to be done cause state_set variable
    can be longer than 32 bits.
    This patch is moved. Orginal commit hash:
    Change-Id: Ida89f3be185736f61543d37010d0f5cb8d80a751
    Reviewers: cedric, stanluk
    Subscribers: cedric, jpeg
    Differential Revision: https://phab.enlightenment.org/D4260
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
 src/lib/elementary/elm_interface_atspi_accessible.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/elementary/elm_interface_atspi_accessible.h 
index 929216b..5116983 100644
--- a/src/lib/elementary/elm_interface_atspi_accessible.h
+++ b/src/lib/elementary/elm_interface_atspi_accessible.h
@@ -13,17 +13,17 @@
  * Sets a particilar state type for given state set.
-#define STATE_TYPE_SET(state_set, type)   (state_set|= (1L << type))
+#define STATE_TYPE_SET(state_set, type)   (state_set|= (1ULL << type))
  * Unsets a particilar state type for given state set.
-#define STATE_TYPE_UNSET(state_set, type) (state_set &= ~(1L << type))
+#define STATE_TYPE_UNSET(state_set, type) (state_set &= ~(1ULL << type))
  * Gets value of a particilar state type for given state set.
-#define STATE_TYPE_GET(state_set, type)   (state_set & (1L << type))
+#define STATE_TYPE_GET(state_set, type)   (state_set & (1ULL << type))
  * Free Elm_Atspi_Attributes_List


Reply via email to