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:
parent
ce811f7cec
commit
8aa6c973d8
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user