[gtk+] Cast to fix compilation warning
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Cast to fix compilation warning
- Date: Wed, 21 Oct 2009 22:04:31 +0000 (UTC)
commit 852d4f49cd65c4a78791dfc781f504d6cbb9335c
Author: Javier Jardón <jjardon gnome org>
Date: Wed Oct 21 23:53:01 2009 +0200
Cast to fix compilation warning
gdk-pixbuf/io-bmp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index 21300e4..e654d1f 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -1318,7 +1318,7 @@ gdk_pixbuf__bmp_image_save_to_callback (GdkPixbufSaveFunc save_func,
put32 (dst, 0); /* biClrUsed */
put32 (dst, 0); /* biClrImportant */
- if (!save_func (BFH_BIH, 14 + 40, error, user_data))
+ if (!save_func ((gchar *)BFH_BIH, 14 + 40, error, user_data))
return FALSE;
dst_line = buf = g_try_malloc (size);
@@ -1341,7 +1341,7 @@ gdk_pixbuf__bmp_image_save_to_callback (GdkPixbufSaveFunc save_func,
dst[2] = src[0];
}
}
- ret = save_func (buf, size, error, user_data);
+ ret = save_func ((gchar *)buf, size, error, user_data);
g_free (buf);
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]