edje: fix typo affecting our 32bits signal matching code. 84/68984/2
authorJaeyong Hwang <j_yong.hwang@samsung.com>
Wed, 11 May 2016 02:15:55 +0000 (11:15 +0900)
committerJae Yong Hwang <j_yong.hwang@samsung.com>
Mon, 16 May 2016 04:21:07 +0000 (21:21 -0700)
Big thanks to Maxim who did a serious digging in this issue making it almost
a patch review.

T3125

@fix

upstream commit: 61f7236a62db2c932c82bc68fb1ac8082514831f
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Change-Id: Id4fc301cf5e700914073bd1c3447b1281844ae49

src/lib/edje/edje_signal.c

index ccefc7f..751ef45 100644 (file)
@@ -41,9 +41,9 @@ _edje_signal_match_key_hash(const void *key, int key_length EINA_UNUSED)
         hash ^= eina_hash_int64((const unsigned long long int *)&a->matches[i].source, sizeof (char *));
         hash ^= eina_hash_int64((const unsigned long long int *)&a->matches[i].func, sizeof (Edje_Signal_Cb));
 #else
-        hash ^= eina_hash_int32((const unsigned int *)a->matches[i].signal, sizeof (char *));
-        hash ^= eina_hash_int32((const unsigned int *)a->matches[i].source, sizeof (char *));
-        hash ^= eina_hash_int32((const unsigned int *)a->matches[i].func, sizeof (Edje_Signal_Cb));
+        hash ^= eina_hash_int32((const unsigned int *)&a->matches[i].signal, sizeof (char *));
+        hash ^= eina_hash_int32((const unsigned int *)&a->matches[i].source, sizeof (char *));
+        hash ^= eina_hash_int32((const unsigned int *)&a->matches[i].func, sizeof (Edje_Signal_Cb));
 #endif
      }
    return hash;