From 2913d0688b8a371f407ea805c38e8d45238f0b0f Mon Sep 17 00:00:00 2001 From: Lewis Gentry <8uuuuu@gmail.com> Date: Fri, 11 Feb 2011 11:40:21 -0500 Subject: [PATCH] use appropriate macros to fix warnings on 64-bit systems --- thumb-gdk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thumb-gdk.c b/thumb-gdk.c index debd8dc..9fdd414 100644 --- a/thumb-gdk.c +++ b/thumb-gdk.c @@ -24,7 +24,7 @@ void scale(GdkPixbufLoader *self, gint width, gint height, gpointer reqsize) { - gint max = (gint) reqsize; + gint max = GPOINTER_TO_INT(reqsize); if (width == height) gdk_pixbuf_loader_set_size(self, max, max); @@ -65,7 +65,7 @@ int thumb(FILE *stream, unsigned int n, char *pathname, int requested_size) g_type_init(); /* Required before doing gAnything. */ loader = gdk_pixbuf_loader_new(); g_signal_connect(loader, "size_prepared", (GCallback) scale, - (gpointer) requested_size); + GINT_TO_POINTER(requested_size)); if (fill(loader, stream, n)) { pixbuf = gdk_pixbuf_loader_get_pixbuf(loader); -- 2.11.4.GIT