Commit 5e77e70c authored by Martin Nordholts's avatar Martin Nordholts Committed by Martin Nordholts

gegl/buffer/gegl-buffer.c Cast appropriately when passing around Babl

2008-02-18  Martin Nordholts  <martinn@svn.gnome.org>

	* gegl/buffer/gegl-buffer.c
	* gegl/buffer/gegl-buffer-allocator.c:
	Cast appropriately when passing around Babl formats. Fixes some
	harmless compiler warnings.

svn path=/trunk/; revision=2043
parent 1c0ef698
2008-02-18 Martin Nordholts <martinn@svn.gnome.org>
* gegl/buffer/gegl-buffer.c
* gegl/buffer/gegl-buffer-allocator.c:
Cast appropriately when passing around Babl formats. Fixes some
harmless compiler warnings.
2008-02-18 Øyvind Kolås <pippin@gimp.org>
* operations/workshop/grey.c: (operation_class_init): use
......
......@@ -180,7 +180,7 @@ gegl_buffer_new_from_format (const void *babl_format,
GeglStorage *storage;
gchar *path;
path = g_strdup_printf ("%s/GEGL-%i-%s.swap", gegl_swap_dir (),
getpid (), babl_name (babl_format));
getpid (), babl_name ((Babl*) babl_format));
storage = g_object_new (GEGL_TYPE_STORAGE,
"format", babl_format,
"path", path,
......
......@@ -806,7 +806,8 @@ pset (GeglBuffer *buffer,
if (format != buffer->format)
{
fish = babl_fish (buffer->format, format);
fish = babl_fish ((gpointer) buffer->format,
(gpointer) format);
}
{
......@@ -889,7 +890,8 @@ pget (GeglBuffer *buffer,
if (format != buffer->format)
{
fish = babl_fish (buffer->format, format);
fish = babl_fish ((gpointer) buffer->format,
(gpointer) format);
}
{
......@@ -1018,11 +1020,13 @@ gegl_buffer_iterate (GeglBuffer *buffer,
{
if (write)
{
fish = babl_fish (format, buffer->format);
fish = babl_fish ((gpointer) format,
(gpointer) buffer->format);
}
else
{
fish = babl_fish (buffer->format, format);
fish = babl_fish ((gpointer) buffer->format,
(gpointer) format);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment