Commit f7ccaf1b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

Simon Budig <simon@gimp.org>

2000-12-31  Sven Neumann  <sven@gimp.org>
            Simon Budig <simon@gimp.org>

	* app/gimpbrush.c
	* plug-ins/common/gih.c: explicitely cast offset to (off_t) when
	seeking back. Should fix the problems reading grayscale BrushPipes
	on IRIX.
parent f16e01a2
2000-12-31 Sven Neumann <sven@gimp.org>
Simon Budig <simon@gimp.org>
* app/gimpbrush.c
* plug-ins/common/gih.c: explicitely cast offset to (off_t) when
seeking back. Should fix the problems reading grayscale BrushPipes
on IRIX.
2000-12-31 Michael Natterer <mitch@gimp.org>
* app/apptypes.h: cleaned up a bit.
......
......@@ -353,7 +353,7 @@ gimp_brush_load_brush (gint fd,
else
{
/* rewind to make brush pipe loader happy */
if (lseek (fd, - sizeof (PatternHeader), SEEK_CUR) < 0)
if (lseek (fd, - ((off_t) sizeof (PatternHeader)), SEEK_CUR) < 0)
{
g_message (_("GIMP brush file appears to be corrupted: \"%s\"."),
filename);
......
......@@ -353,7 +353,7 @@ gimp_brush_load_brush (gint fd,
else
{
/* rewind to make brush pipe loader happy */
if (lseek (fd, - sizeof (PatternHeader), SEEK_CUR) < 0)
if (lseek (fd, - ((off_t) sizeof (PatternHeader)), SEEK_CUR) < 0)
{
g_message (_("GIMP brush file appears to be corrupted: \"%s\"."),
filename);
......
......@@ -353,7 +353,7 @@ gimp_brush_load_brush (gint fd,
else
{
/* rewind to make brush pipe loader happy */
if (lseek (fd, - sizeof (PatternHeader), SEEK_CUR) < 0)
if (lseek (fd, - ((off_t) sizeof (PatternHeader)), SEEK_CUR) < 0)
{
g_message (_("GIMP brush file appears to be corrupted: \"%s\"."),
filename);
......
......@@ -542,7 +542,7 @@ gih_load_one_brush (gint fd,
}
g_free (plain_brush);
}
else if (lseek (fd, - sizeof (PatternHeader), SEEK_CUR) < 0)
else if (lseek (fd, - ((off_t) sizeof (PatternHeader)), SEEK_CUR) < 0)
{
g_message (_("GIMP brush file appears to be corrupted."));
g_free (name);
......
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