summaryrefslogtreecommitdiff
path: root/atspi/atspi-stateset.c
diff options
context:
space:
mode:
authorMike Gorse <mgorse@novell.com>2010-11-28 14:48:52 -0500
committerMike Gorse <mgorse@novell.com>2010-11-28 14:48:52 -0500
commitfebc57fdd883c96a471a970f6801af9d5a5bdf92 (patch)
tree31b385ee12ddebc4ca1ffe62901bdedd52f1b39d /atspi/atspi-stateset.c
parentba62b6e42a04872513574b1abd2e02d44c2a6468 (diff)
downloadat-spi2-core-febc57fdd883c96a471a970f6801af9d5a5bdf92.tar.gz
Really commit fixes; make unit tests pass
Diffstat (limited to 'atspi/atspi-stateset.c')
-rw-r--r--atspi/atspi-stateset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/atspi/atspi-stateset.c b/atspi/atspi-stateset.c
index 4cba34e2..958b734b 100644
--- a/atspi/atspi-stateset.c
+++ b/atspi/atspi-stateset.c
@@ -80,7 +80,7 @@ atspi_state_set_new (GArray *states)
for (i = 0; i < states->len; i++)
atspi_state_set_add (set, g_array_index (states, AtspiStateType, i));
- return states;
+ return set;
}
AtspiStateSet *
@@ -154,7 +154,7 @@ void
atspi_state_set_add (AtspiStateSet *set, AtspiStateType state)
{
g_return_if_fail (set != NULL);
- set->states |= (1 << state);
+ set->states |= (((gint64)1) << state);
}
/**