From 0f50dc77d9e328541be71561dd7e5c313c8a7c9d Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Fri, 23 Feb 2007 02:32:43 +0000 Subject: Fix nsgtk bitmap code warnings svn path=/trunk/netsurf/; revision=3188 --- gtk/gtk_bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtk_bitmap.c') diff --git a/gtk/gtk_bitmap.c b/gtk/gtk_bitmap.c index a719485a8..dda8b7659 100644 --- a/gtk/gtk_bitmap.c +++ b/gtk/gtk_bitmap.c @@ -194,10 +194,10 @@ gtk_bitmap_generate_pretile(GdkPixbuf *primary, int repeat_x, int repeat_y) GdkPixbuf *result = gdk_pixbuf_new(GDK_COLORSPACE_RGB, true, 8, width * repeat_x, height * repeat_y); char *target_buffer = (char *)gdk_pixbuf_get_pixels(result); - size_t target_stride = gdk_pixbuf_get_rowstride(result); int x,y,row; /* This algorithm won't work if the strides are not multiples */ - assert(target_stride == (primary_stride * repeat_x)); + assert((size_t)gdk_pixbuf_get_rowstride(result) == + (primary_stride * repeat_x)); if (repeat_x == 1 && repeat_y == 1) { g_object_ref(primary); -- cgit v1.2.3