[gtk+] Fix compilation warning: Cast to guchar*
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Fix compilation warning: Cast to guchar*
- Date: Mon, 9 Nov 2009 08:34:37 +0000 (UTC)
commit 73cfcf94953359dc781f30f94eef15593000a2e5
Author: Javier Jardón <jjardon gnome org>
Date: Mon Nov 9 00:32:50 2009 +0100
Fix compilation warning: Cast to guchar*
demos/testpixbuf-save.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/testpixbuf-save.c b/demos/testpixbuf-save.c
index a8893f9..3929c7e 100644
--- a/demos/testpixbuf-save.c
+++ b/demos/testpixbuf-save.c
@@ -72,7 +72,7 @@ save_to_loader (const gchar *buf, gsize count, GError **err, gpointer data)
{
GdkPixbufLoader *loader = data;
- return gdk_pixbuf_loader_write (loader, buf, count, err);
+ return gdk_pixbuf_loader_write (loader, (const guchar *)buf, count, err);
}
static GdkPixbuf *
@@ -82,7 +82,7 @@ buffer_to_pixbuf (const gchar *buf, gsize count, GError **err)
GdkPixbuf *pixbuf;
loader = gdk_pixbuf_loader_new ();
- if (gdk_pixbuf_loader_write (loader, buf, count, err) &&
+ if (gdk_pixbuf_loader_write (loader, (const guchar *)buf, count, err) &&
gdk_pixbuf_loader_close (loader, err)) {
pixbuf = g_object_ref (gdk_pixbuf_loader_get_pixbuf (loader));
g_object_unref (loader);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]