summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Ganicz <p.ganicz@samsung.com>2016-09-20 14:44:53 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-09-20 15:01:48 -0700
commit445b3587e321c74fa23c401dda567dd5b27257b8 (patch)
tree8b0d90021e3289003a94b3c1f127a2b687859153
parent8272d1492796657978c5591971768d37d4e15a7e (diff)
atspi: fix state macros
Summary: 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: a559e473c21c8da7c4e5a87b9c8583ce519cc35e Change-Id: Ida89f3be185736f61543d37010d0f5cb8d80a751 Reviewers: cedric, stanluk Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4260 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elementary/elm_interface_atspi_accessible.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_interface_atspi_accessible.h b/src/lib/elementary/elm_interface_atspi_accessible.h
index 929216bd89..5116983c22 100644
--- a/src/lib/elementary/elm_interface_atspi_accessible.h
+++ b/src/lib/elementary/elm_interface_atspi_accessible.h
@@ -13,17 +13,17 @@
13/* 13/*
14 * Sets a particilar state type for given state set. 14 * Sets a particilar state type for given state set.
15 */ 15 */
16#define STATE_TYPE_SET(state_set, type) (state_set|= (1L << type)) 16#define STATE_TYPE_SET(state_set, type) (state_set|= (1ULL << type))
17 17
18/** 18/**
19 * Unsets a particilar state type for given state set. 19 * Unsets a particilar state type for given state set.
20 */ 20 */
21#define STATE_TYPE_UNSET(state_set, type) (state_set &= ~(1L << type)) 21#define STATE_TYPE_UNSET(state_set, type) (state_set &= ~(1ULL << type))
22 22
23/** 23/**
24 * Gets value of a particilar state type for given state set. 24 * Gets value of a particilar state type for given state set.
25 */ 25 */
26#define STATE_TYPE_GET(state_set, type) (state_set & (1L << type)) 26#define STATE_TYPE_GET(state_set, type) (state_set & (1ULL << type))
27 27
28/** 28/**
29 * Free Elm_Atspi_Attributes_List 29 * Free Elm_Atspi_Attributes_List