Branch: Tag:

2001-09-24

2001-09-24 11:48:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/modules/Gmp/mpf.cmod:1.2
Rev: src/modules/Gmp/mpq.cmod:1.3
Rev: src/modules/Gmp/mpz_glue.c:1.98
Rev: src/modules/Image/colors.c:1.57
Rev: src/modules/Image/colortable.c:1.106
Rev: src/modules/Image/colortable_lookup.h:1.17
Rev: src/modules/Image/dct.c:1.19
Rev: src/modules/Image/image.c:1.192
Rev: src/modules/Image/image.h:1.48
Rev: src/modules/Image/image_module.c:1.12
Rev: src/modules/Image/layers.c:1.74
Rev: src/modules/Image/poly.c:1.13
Rev: src/modules/Java/jvm.c:1.36
Rev: src/modules/Math/matrix_code.h:1.3

1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.73 2001/07/27 15:20:45 nilsson Exp $ + **! $Id: layers.c,v 1.74 2001/09/24 11:35:00 grubba Exp $   **! class Layer   **! see also: layers   **!
217:      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.73 2001/07/27 15:20:45 nilsson Exp $"); + RCSID("$Id: layers.c,v 1.74 2001/09/24 11:35:00 grubba Exp $");      #include "image_machine.h"   
776:    if (s == 0)    {   /* achromatic case */ -  rgb->r = l; -  rgb->g = l; -  rgb->b = l; +  rgb->r = (COLORTYPE)l; +  rgb->g = (COLORTYPE)l; +  rgb->b = (COLORTYPE)l;    }    else    {
2408:    ly->fill.g!=0 ||    ly->fill.b!=0)    { -  rgb_group fill=ly->fill; +     while (len--)    {    d->r=MINIMUM(s->r+la->r,COLORMAX);
2635:    }    else    { -  int i; -  +    /* fprintf(stderr,"ly=%p len=%d\n",ly,len); */       while (len>SNUMPIXS)
2831:    (layer[z]->yoffs<=y+dest->yoffs &&    y+dest->yoffs<layer[z]->yoffs+layer[z]->ysize))    { -  rgb_group *tmp; -  +    /* if (!layer[z]->really_optimize_alpha) */   /* fprintf(stderr,"huh %d\n",z); */   /* if (!(layer[z]->yoffs>=y+dest->yoffs && */
3275:      void init_image_layers(void)   { -  char buf[100]; -  char buf2[sizeof(INT32)]; +     int i;       for (i=0; i<LAYER_MODES; i++)