[at-spi2-core] Fix a possible sign issue with state sets



commit 0d151ac44390d9cd12276dee6bfd14156a235103
Author: Mike Gorse <mgorse novell com>
Date:   Wed Mar 9 16:00:21 2011 -0600

    Fix a possible sign issue with state sets

 atspi/atspi-stateset.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-stateset.c b/atspi/atspi-stateset.c
index 07c17b7..a5bcc51 100644
--- a/atspi/atspi-stateset.c
+++ b/atspi/atspi-stateset.c
@@ -160,7 +160,7 @@ refresh_states (AtspiStateSet *set)
   states = (dbus_uint32_t *) state_array->data;
 
   set->states = ((gint64)states [1]) << 32;
-  set->states += states [0];
+  set->states |= (gint64) states [0];
   g_array_free (state_array, TRUE);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]