[java-atk-wrapper] JNI: GINT_TO_POINTER cast for g_hash_table_lookup arg



commit c26046a4bd0c27738e6780e9efd05e6fe5968fb5
Author: Magdalen Berns <m berns thismagpie com>
Date:   Wed Jun 3 16:27:55 2015 +0100

    JNI: GINT_TO_POINTER cast for g_hash_table_lookup arg
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=698095

 jni/src/jawutil.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/jni/src/jawutil.c b/jni/src/jawutil.c
index a38ab76..ce2d406 100644
--- a/jni/src/jawutil.c
+++ b/jni/src/jawutil.c
@@ -144,14 +144,14 @@ jaw_util_remove_global_event_listener (guint remove_listener)
     JawUtilListenerInfo *listener_info;
     gint tmp_idx = remove_listener;
 
-    listener_info = (JawUtilListenerInfo*)g_hash_table_lookup(listener_list, &tmp_idx);
+    listener_info = (JawUtilListenerInfo*)g_hash_table_lookup(listener_list, GINT_TO_POINTER(tmp_idx));
 
     if (listener_info != NULL)
     {
       if (listener_info->hook_id != 0 && listener_info->signal_id != 0)
       {
         g_signal_remove_emission_hook(listener_info->signal_id, listener_info->hook_id);
-        g_hash_table_remove(listener_list, &tmp_idx);
+        g_hash_table_remove(listener_list, GINT_TO_POINTER(tmp_idx));
       } else {
         g_warning("Invalid listener hook_id %ld or signal_id %d\n",
                   listener_info->hook_id, listener_info->signal_id);


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