Cast buf to unsigned char to avoid two compiler warnings.

2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkhsv.c (paint_ring, paint_triangle):
    Cast buf to unsigned char to avoid two compiler
    warnings.


svn path=/trunk/; revision=20470
This commit is contained in:
Johan Dahlin 2008-06-19 14:19:34 +00:00 committed by Johan Dahlin
parent ce811f7cec
commit 8aa6c973d8
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkhsv.c (paint_ring, paint_triangle):
Cast buf to unsigned char to avoid two compiler
warnings.
* gtk/gtkclist.c:
* gtk/gtkstyle.c (gtk_style_finalize):
Do not ignore the return value of g_slist_remove.

View File

@ -952,7 +952,7 @@ paint_ring (GtkHSV *hsv,
}
}
source = cairo_image_surface_create_for_data ((char *)buf,
source = cairo_image_surface_create_for_data ((unsigned char *)buf,
CAIRO_FORMAT_RGB24,
width, height, stride);
@ -1164,7 +1164,7 @@ paint_triangle (GtkHSV *hsv,
}
}
source = cairo_image_surface_create_for_data ((char *)buf,
source = cairo_image_surface_create_for_data ((unsigned char *)buf,
CAIRO_FORMAT_RGB24,
width, height, stride);