Fix a possible sign issue with state sets
authorMike Gorse <mgorse@novell.com>
Wed, 9 Mar 2011 22:00:21 +0000 (16:00 -0600)
committerMike Gorse <mgorse@novell.com>
Wed, 9 Mar 2011 22:01:22 +0000 (16:01 -0600)
atspi/atspi-stateset.c

index 07c17b7..a5bcc51 100644 (file)
@@ -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);
 }