plug-ins/common/deinterlace.c added parentheses where gcc suggested them.

2003-03-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/deinterlace.c
	* plug-ins/common/pixelize.c: added parentheses where gcc
	suggested them.
This commit is contained in:
Sven Neumann 2003-03-07 20:38:23 +00:00 committed by Sven Neumann
parent 6412d5f535
commit e70bd5d270
3 changed files with 21 additions and 13 deletions

View File

@ -1,3 +1,9 @@
2003-03-07 Sven Neumann <sven@gimp.org>
* plug-ins/common/deinterlace.c
* plug-ins/common/pixelize.c: added parentheses where gcc
suggested them.
2003-03-07 Sven Neumann <sven@gimp.org>
* app/base/hue-saturation.[ch]: changed the hue_saturation()

View File

@ -239,12 +239,12 @@ deinterlace (GimpDrawable *drawable)
guint lalpha = lpix[bytes-1];
guint alpha = ualpha + lalpha;
if (dpix[bytes-1] = alpha >> 1)
if ((dpix[bytes-1] = (alpha >> 1)))
{
for (b = 0; b < bytes-1; b++)
dpix[b] = (upix[b] * ualpha
+ lpix[b] * lalpha) / alpha;
dpix[b] = (upix[b] * ualpha + lpix[b] * lalpha) / alpha;
}
upix += bytes;
lpix += bytes;
dpix += bytes;

View File

@ -516,7 +516,7 @@ pixelize_large (GimpDrawable *drawable,
{
gulong alpha = average[bpp-1];
if (average[bpp-1] = alpha/count)
if ((average[bpp-1] = alpha / count))
for (b = 0; b < bpp-1; b++)
average[b] /= alpha;
}
@ -541,6 +541,7 @@ pixelize_large (GimpDrawable *drawable,
{
for (b = 0; b < bpp; b++)
dest[b] = average[b];
dest += dest_rgn.bpp;
count += 1;
}
@ -706,7 +707,7 @@ pixelize_sub (gint pixelwidth,
{
gulong alpha = average[bpp-1];
if (average[bpp-1] = alpha/count)
if ((average[bpp-1] = alpha / count))
{
for (i = 0; i < bpp-1; i++)
average[i] /= alpha;
@ -729,6 +730,7 @@ pixelize_sub (gint pixelwidth,
{
for (i = 0; i < bpp; i++)
buf[i] = average[i];
count++;
buf += bpp;
}