mirror of https://github.com/GNOME/gimp.git
app/paint-funcs/paint-funcs-generic.h fixed signedness warnings.
2005-08-06 Sven Neumann <sven@gimp.org> * app/core/gimppalette-import.c: * app/paint-funcs/paint-funcs-generic.h * app/paint-funcs/paint-funcs.c: fixed signedness warnings.
This commit is contained in:
parent
2167be4d20
commit
90d861bec2
|
@ -1,3 +1,9 @@
|
|||
2005-08-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimppalette-import.c:
|
||||
* app/paint-funcs/paint-funcs-generic.h
|
||||
* app/paint-funcs/paint-funcs.c: fixed signedness warnings.
|
||||
|
||||
2005-08-05 Kevin Cozens <kcozens@cvs.gnome.org>
|
||||
|
||||
* plug-ins/script-fu/scripts/test-sphere.scm: Added missing argument
|
||||
|
|
|
@ -389,7 +389,7 @@ gimp_palette_detect_file_format (const gchar *filename)
|
|||
{
|
||||
GimpPaletteFileFormat format = GIMP_PALETTE_FILE_FORMAT_UNKNOWN;
|
||||
gint fd;
|
||||
guchar header[16];
|
||||
gchar header[16];
|
||||
struct stat file_stat;
|
||||
|
||||
fd = g_open (filename, O_RDONLY, 0);
|
||||
|
|
|
@ -510,8 +510,8 @@ saturation_only_pixels (const guchar *src1,
|
|||
{
|
||||
const guint has_alpha1 = HAS_ALPHA (bytes1);
|
||||
const guint has_alpha2 = HAS_ALPHA (bytes2);
|
||||
guint r1, g1, b1;
|
||||
guint r2, g2, b2;
|
||||
gint r1, g1, b1;
|
||||
gint r2, g2, b2;
|
||||
|
||||
/* assumes inputs are only 4 byte RGBA pixels */
|
||||
while (length--)
|
||||
|
@ -550,8 +550,8 @@ value_only_pixels (const guchar *src1,
|
|||
{
|
||||
const guint has_alpha1 = HAS_ALPHA (bytes1);
|
||||
const guint has_alpha2 = HAS_ALPHA (bytes2);
|
||||
guint r1, g1, b1;
|
||||
guint r2, g2, b2;
|
||||
gint r1, g1, b1;
|
||||
gint r2, g2, b2;
|
||||
|
||||
/* assumes inputs are only 4 byte RGBA pixels */
|
||||
while (length--)
|
||||
|
@ -590,8 +590,8 @@ color_only_pixels (const guchar *src1,
|
|||
{
|
||||
const guint has_alpha1 = HAS_ALPHA (bytes1);
|
||||
const guint has_alpha2 = HAS_ALPHA (bytes2);
|
||||
guint r1, g1, b1;
|
||||
guint r2, g2, b2;
|
||||
gint r1, g1, b1;
|
||||
gint r2, g2, b2;
|
||||
|
||||
/* assumes inputs are only 4 byte RGBA pixels */
|
||||
while (length--)
|
||||
|
|
|
@ -124,7 +124,7 @@ static const guchar no_mask = OPAQUE_OPACITY;
|
|||
/* Local function prototypes */
|
||||
|
||||
static gint * make_curve (gdouble sigma,
|
||||
guint *length);
|
||||
gint *length);
|
||||
static gdouble cubic (gdouble dx,
|
||||
gint jm1,
|
||||
gint j,
|
||||
|
@ -338,7 +338,7 @@ update_tile_rowhints (Tile *tile,
|
|||
|
||||
static gint *
|
||||
make_curve (gdouble sigma,
|
||||
guint *length)
|
||||
gint *length)
|
||||
{
|
||||
gint *curve;
|
||||
gdouble sigma2;
|
||||
|
@ -2683,7 +2683,7 @@ gaussian_blur_region (PixelRegion *srcR,
|
|||
guchar *src, *sp;
|
||||
guchar *dest, *dp;
|
||||
guchar *data;
|
||||
gint *buf, *b;
|
||||
guint *buf, *b;
|
||||
gint pixels;
|
||||
gint total;
|
||||
gint i, row, col;
|
||||
|
@ -2708,7 +2708,7 @@ gaussian_blur_region (PixelRegion *srcR,
|
|||
bytes = srcR->bytes;
|
||||
alpha = bytes - 1;
|
||||
|
||||
buf = g_new (gint, MAX (width, height) * 2);
|
||||
buf = g_new (guint, MAX (width, height) * 2);
|
||||
|
||||
if (radius_y != 0.0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue