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>
This commit is contained in:
Piotr Ganicz 2016-09-20 14:44:53 -07:00 committed by Cedric BAIL
parent 8272d14927
commit 445b3587e3
1 changed files with 3 additions and 3 deletions

View File

@ -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