silence a warning on 64-bit machines introduced in r12669
authorJordan Lee <jordan@transmissionbt.com>
Sat, 13 Aug 2011 20:18:10 +0000 (20:18 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 13 Aug 2011 20:18:10 +0000 (20:18 +0000)
gtk/main.c

index 79649cb5aa2cbbd5cd73b4e10a2e716d499db926..28471d6e99b21df9feac8e75648d04d42b665b60 100644 (file)
@@ -102,7 +102,7 @@ gtr_window_present( GtkWindow * window )
 static int
 compare_integers( gconstpointer a, gconstpointer b )
 {
-    return (int)a - (int)b;
+    return GPOINTER_TO_INT(a) - GPOINTER_TO_INT(b);
 }
 
 static char*