Branch: Tag:

2000-10-10

2000-10-10 21:06:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/modules/Image/encodings/xcf.c:1.24
Rev: src/modules/_Crypto/rijndael.c:1.3
Rev: src/pike_search.c:1.2
Rev: src/pike_search.h:1.2
Rev: src/pike_search_engine.c:1.2

104:    if(max > MEMSEARCH_LINKS) max=MEMSEARCH_LINKS;       /* This assumes 512 buckets - Hubbe */ -  maxlinklength=my_sqrt(max/2)+1; +  maxlinklength = my_sqrt(DO_NOT_WARN((unsigned int)max/2))+1;       ptr=& s->links[0];   
219:    return;       case 1: -  s->mojt.data=(void *)(long)(needle[0]); +  s->mojt.data=(void *)(ptrdiff_t)(needle[0]);    s->mojt.vtab=& PxC3(memchr_search,NSHIFT,_vtable);    return;   
266:         SearchMojt NameN(compile_memsearcher)(NCHAR *needle, -  int len, +  ptrdiff_t len,    int max_haystacklen,    struct pike_string *hashkey)   {