Branch: Tag:

2000-08-09

2000-08-09 17:53:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/modules/Image/colors.c:1.34
Rev: src/modules/Image/match.h:1.9
Rev: src/modules/Image/search.c:1.17

34:    int xs,ys, y, x; /* for this & img */    int nxs,nys, ny, nx; /* for neddle */    int foo=0; -  float scale; +  double scale;    int needle_average=0;    int needle_size=0;   
47:    else    {    if (sp[-args].type==T_INT) -  scale=sp[-args].u.integer; +  scale = (double)sp[-args].u.integer;    else if (sp[-args].type==T_FLOAT) -  scale=sp[-args].u.float_number; +  scale = sp[-args].u.float_number;    else    error("Illegal argument 1 to image->"NAME"\n");   
172:    else\    {\    NORMCODE;\ -  tempavr=(int)(((float)tempavr)/(3*needle_size)); \ +  tempavr = DOUBLE_TO_INT(((double)tempavr)/(3*needle_size)); \    for(ny=0; ny<nys; ny++) \    for(nx=0; nx<nxs; nx++) \    { \
185:    (MAXIMUM(CERTI1 B1, CERTI1 B1) * PIXEL_VALUE_DISTANCE(b)); \    } \    imgi[i+(nys/2)*xs+(nxs/2)].r=\ -  (int)(255.99/(1.0+((((float)scale) * SCALE_MODIFY((float)sum))))); \ +  DOUBLE_TO_INT(255.99/(1.0+((((double)scale) * SCALE_MODIFY((double)sum))))); \    }\    }