diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2007-02-23 02:32:43 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2007-02-23 02:32:43 +0000 |
commit | 0f50dc77d9e328541be71561dd7e5c313c8a7c9d (patch) | |
tree | 66824b2db1b99b076aafcc21c3d28313523da800 /gtk | |
parent | 657e384a8482f6bd42ef4b021180b79bb0f0110c (diff) | |
download | netsurf-0f50dc77d9e328541be71561dd7e5c313c8a7c9d.tar.gz netsurf-0f50dc77d9e328541be71561dd7e5c313c8a7c9d.tar.bz2 |
Fix nsgtk bitmap code warnings
svn path=/trunk/netsurf/; revision=3188
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |