Branch: Tag:

2002-08-13

2002-08-13 17:29:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/global.h:1.71
Rev: src/module_support.h:1.12
Rev: src/modules/Gmp/mpf.cmod:1.8
Rev: src/modules/Gmp/mpq.cmod:1.9
Rev: src/modules/HTTPLoop/requestobject.c:1.20
Rev: src/modules/Image/encodings/xcf.c:1.40
Rev: src/modules/Image/layers.c:1.78
Rev: src/modules/Math/math_module.h:1.7
Rev: src/modules/Math/transforms.cmod:1.5
Rev: src/modules/Parser/html.c:1.151
Rev: src/modules/_Charset/charsetmod.c:1.34
Rev: src/modules/_Crypto/include/crypto_types.h:1.6
Rev: src/pike_threadlib.h:1.15

1:   #include "global.h" - RCSID("$Id: xcf.c,v 1.39 2002/05/11 00:11:38 nilsson Exp $"); + RCSID("$Id: xcf.c,v 1.40 2002/08/13 17:12:59 grubba Exp $");      #include "image_machine.h"   
133:    if( x > s->len>>2 )    Pike_error("Index %d out of range", x );    -  p = s->s->str + s->offset + x*4; +  p = ((unsigned char *)s->s->str) + s->offset + x*4;    res = (p[0]<<24) | (p[1]<<16) | (p[2]<<8) | p[3];    push_int( res );   }
148:    if( x > s->len>>2 )    Pike_error("Index %d out of range", x );    -  p = s->s->str + s->offset + x*4; +  p = ((unsigned char *)s->s->str) + s->offset + x*4;    res = (p[0]<<24) | (p[1]<<16) | (p[2]<<8) | p[3];    push_int64( res );   }
162:    if( x > s->len>>1 )    Pike_error("Index %d out of range", x );    -  p = s->s->str + s->offset + x*2; +  p = ((unsigned char *)s->s->str) + s->offset + x*2;    res = (p[2]<<8) | p[3];    push_int( res );   }
176:    if( x > s->len>>1 )    Pike_error("Index %d out of range", x );    -  p = s->s->str + s->offset + x*2; +  p = ((unsigned char *)s->s->str) + s->offset + x*2;    res = (p[2]<<8) | p[3];    push_int( res );   }
1235:    if(!tile_ss)    continue;    -  tile.str = (tile_ss->s->str + tile_ss->offset); +  tile.str = (unsigned char *)(tile_ss->s->str + tile_ss->offset);    tile.len = tile_ss->len;       ewidth = MINIMUM(TILE_WIDTH, (rxs-x));
1246:    struct buffer s = tile, od, d;    int i;    od.len = eheight*ewidth*bpp; /* Max and only size, really */ -  df = od.str = (unsigned char *)xalloc( eheight*ewidth*bpp+1 ); +  df = (char *)(od.str = (unsigned char *)xalloc( eheight*ewidth*bpp+1 ));    d = od;       for(i=0; i<bpp; i++)