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: colors.c,v 1.56 2001/09/17 19:06:21 nilsson Exp $ + **! $Id: colors.c,v 1.57 2001/09/24 11:30:25 grubba Exp $   **! submodule Color   **!   **! This module keeps names and easy handling
188:      #include "global.h"    - RCSID("$Id: colors.c,v 1.56 2001/09/17 19:06:21 nilsson Exp $"); + RCSID("$Id: colors.c,v 1.57 2001/09/24 11:30:25 grubba Exp $");      #include "image_machine.h"   
507:    h *= 60; /* now in degrees. */    if(h<0) h+=360;    -  push_float(h); -  push_float(s); -  push_float(v); +  push_float(DO_NOT_WARN((FLOAT_TYPE)h)); +  push_float(DO_NOT_WARN((FLOAT_TYPE)s)); +  push_float(DO_NOT_WARN((FLOAT_TYPE)v));    f_aggregate(3);   }   
544:    m=1.0-g-k;    y=1.0-b-k;    -  push_float(c*100.0); -  push_float(m*100.0); -  push_float(y*100.0); -  push_float(k*100.0); +  push_float(DO_NOT_WARN((FLOAT_TYPE)(c*100.0))); +  push_float(DO_NOT_WARN((FLOAT_TYPE)(m*100.0))); +  push_float(DO_NOT_WARN((FLOAT_TYPE)(y*100.0))); +  push_float(DO_NOT_WARN((FLOAT_TYPE)(k*100.0)));    f_aggregate(4);   }   
1070:    sp--;    dmalloc_touch_svalue(sp);    push_array_items(sp->u.array); /* frees */ -  sp[-1].u.float_number+=+0.2; -  if (sp[-1].u.float_number>=1.0) -  sp[-2].u.float_number-=sp[-1].u.float_number-1.0; +  sp[-1].u.float_number += DO_NOT_WARN((FLOAT_TYPE)0.2); +  if (((double)sp[-1].u.float_number) >= 1.0) +  sp[-2].u.float_number -= DO_NOT_WARN((FLOAT_TYPE)(sp[-1].u.float_number - +  1.0));       image_make_hsv_color(3);   }
1125:       if (sp[-2].u.float_number==0.0)    { -  sp[-1].u.float_number-=0.2; +  sp[-1].u.float_number -= DO_NOT_WARN((FLOAT_TYPE)0.2);    }    else    { -  sp[-2].u.float_number-=0.2; -  sp[-1].u.float_number-=0.2; +  sp[-2].u.float_number -= DO_NOT_WARN((FLOAT_TYPE)0.2); +  sp[-1].u.float_number -= DO_NOT_WARN((FLOAT_TYPE)0.2);    }    image_make_hsv_color(3);   }
1579:    } else {   #define i floor(h)   #define f (h-i) - #define p (v * (1 - s)) - #define q (v * (1 - (s * f))) - #define t (v * (1 - (s * (1 -f)))) + #define p ((FLOAT_TYPE)(v * (1 - s))) + #define q ((FLOAT_TYPE)(v * (1 - (s * f)))) + #define t ((FLOAT_TYPE)(v * (1 - (s * (1 -f)))))    switch(DOUBLE_TO_INT(i))    {    case 6: /* 360 degrees. Same as 0.. */