Commit 84c1f981 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

app/paint-funcs/paint-funcs.c plug-ins/common/psd_save.c 64-bit cleaniless

2002-02-08  Manish Singh  <yosh@gimp.org>

        * app/paint-funcs/paint-funcs.c
        * plug-ins/common/psd_save.c
        * plug-ins/common/sample_colorize.c: 64-bit cleaniless cleanups.
parent 485f454b
2002-02-08 Manish Singh <yosh@gimp.org>
* app/paint-funcs/paint-funcs.c
* plug-ins/common/psd_save.c
* plug-ins/common/sample_colorize.c: 64-bit cleaniless cleanups.
2003-02-07 Michael Natterer <mitch@gimp.org>
Added object properties for almost all tool_options values
......
......@@ -1020,7 +1020,7 @@ combine_inten_a_and_inten_a_pixels (const guchar *src1,
if (length >= sizeof(int))
{
/* HEAD */
i = (((int)m) & (sizeof(int)-1));
i = (GPOINTER_TO_INT(m) & (sizeof(int)-1));
if (i != 0)
{
i = sizeof(int) - i;
......@@ -1138,7 +1138,7 @@ combine_inten_a_and_inten_a_pixels (const guchar *src1,
if (length >= sizeof(int))
{
/* HEAD */
i = (((int)m) & (sizeof(int)-1));
i = (GPOINTER_TO_INT(m) & (sizeof(int)-1));
if (i != 0)
{
i = sizeof(int) - i;
......
......@@ -795,7 +795,7 @@ static void save_resources (FILE *fd, gint32 image_id)
fseek(fd, posNombres, SEEK_SET);
write_glong(fd, posActual - posNombres - sizeof(glong), "0x03EE resource size");
IFDBG printf ("\n Longitud total de 0x03EE resource: %d\n",
posActual - posNombres - sizeof(glong) );
(int) (posActual - posNombres - sizeof(glong)) );
/* Vuelve al final de fichero para continuar con la grabacion */
......@@ -822,7 +822,7 @@ static void save_resources (FILE *fd, gint32 image_id)
write_gshort(fd, nActiveLayer, "active layer");
IFDBG printf (" Longitud total de 0x0400 resource: %d\n", sizeof(gshort) );
IFDBG printf (" Longitud total de 0x0400 resource: %d\n", (int) sizeof(gshort) );
}
......@@ -833,7 +833,7 @@ static void save_resources (FILE *fd, gint32 image_id)
fseek(fd, posTotal, SEEK_SET);
write_glong(fd, posActual - posTotal - sizeof(glong), "image resources length");
IFDBG printf (" Longitud total de la seccion de recursos: %d\n",
posActual - posTotal - sizeof(glong) );
(int) (posActual - posTotal - sizeof(glong)) );
/* Vuelve al final de fichero para continuar con la grabacion */
......@@ -1125,7 +1125,7 @@ static void save_layerAndMask (FILE *fd, gint32 image_id)
fseek(fd, posExtraData, SEEK_SET);
write_glong(fd, posActual - posExtraData - sizeof(glong), "Extra data size");
IFDBG printf (" Longitud total de ExtraData: %d\n",
posActual - posExtraData - sizeof(glong) );
(int) (posActual - posExtraData - sizeof(glong)) );
/* Vuelve al final de fichero para continuar con la grabacion */
......@@ -1255,14 +1255,14 @@ static void save_layerAndMask (FILE *fd, gint32 image_id)
fseek(fd, posLayerInfo, SEEK_SET);
write_glong(fd, posActual - posLayerInfo - sizeof(glong), "layers info section length");
IFDBG printf ("\n Longitud total de layers info section: %d\n",
posActual - posLayerInfo - sizeof(glong));
(int) (posActual - posLayerInfo - sizeof(glong)));
/* Graba la longitud real de: Seccion Layer and mask information */
fseek(fd, posLayerMask, SEEK_SET);
write_glong(fd, posActual - posLayerMask - sizeof(glong), "layers & mask information length");
IFDBG printf (" Longitud total de layers & mask information: %d\n",
posActual - posLayerMask - sizeof(glong));
(int) (posActual - posLayerMask - sizeof(glong)));
/* Vuelve al final de fichero para continuar con la grabacion */
......
......@@ -3055,7 +3055,7 @@ p_remap_pixel(guchar *pixel, guchar *original, gint bpp2)
static void
colorize_func(guchar *src, guchar *dest, gint bpp, gpointer data)
{
gboolean has_alpha = (gboolean) data;
gboolean has_alpha = GPOINTER_TO_INT (data);
if (has_alpha)
{
......
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