libeventdb (0.90-4) sqlite.c

Summary

 sqlite.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

--- libeventdb-0.90.orig/sqlite.c
+++ libeventdb-0.90/sqlite.c
@@ -403,7 +403,7 @@
 
       int uid = atoi (argv[0]);
 
-      ev = EVENT_SOURCE (g_hash_table_lookup (edb->events, (gpointer) uid));
+      ev = EVENT_SOURCE (g_hash_table_lookup (edb->events, GINT_TO_POINTER(uid)));
       if (ev)
 	/* Already loaded, just add a reference and return it.  */
 	g_object_ref (ev);
@@ -563,7 +563,7 @@
 	    ev->sequence = atoi (argv[1]);
 	  else if (!strcmp (argv[0], "category"))
 	    ev->categories = g_slist_prepend (ev->categories,
-					      (gpointer)atoi (argv[1]));
+					      GINT_TO_POINTER(atoi (argv[1])));
 	}
       return 0;
     }