Author: rjek
Date: Fri Feb 23 02:32:43 2007
New Revision: 3188
URL:
http://svn.semichrome.net?rev=3188&view=rev
Log:
Fix nsgtk bitmap code warnings
Modified:
trunk/netsurf/gtk/gtk_bitmap.c
Modified: trunk/netsurf/gtk/gtk_bitmap.c
URL:
http://svn.semichrome.net/trunk/netsurf/gtk/gtk_bitmap.c?rev=3188&r1=...
==============================================================================
--- trunk/netsurf/gtk/gtk_bitmap.c (original)
+++ trunk/netsurf/gtk/gtk_bitmap.c Fri Feb 23 02:32:43 2007
@@ -194,10 +194,10 @@
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);