Branch: Tag:

2000-09-08

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

Fixed a few warnings.

Rev: src/array.c:1.86
Rev: src/docode.c:1.81
Rev: src/interpret.c:1.170
Rev: src/mapping.c:1.102
Rev: src/modules/Image/encodings/gif_lzw.c:1.9
Rev: src/modules/Odbc/odbc_result.c:1.23
Rev: src/modules/Regexp/pike_regexp.c:1.17
Rev: src/modules/_Image_JPEG/image_jpeg.c:1.35
Rev: src/modules/_Image_TTF/image_ttf.c:1.35
Rev: src/modules/_Image_XFace/image_xface.c:1.11
Rev: src/pike_memory.c:1.83
Rev: src/pike_types.c:1.138

1:   /* -  * $Id: pike_regexp.c,v 1.16 2000/09/02 23:52:23 marcus Exp $ +  * $Id: pike_regexp.c,v 1.17 2000/09/08 16:02:29 grubba Exp $    *    * regexp.c - regular expression matching    *
394:    FAIL("too many ()");    parno = regnpar;    regnpar++; -  ret = regnode(OPEN + parno); +  ret = regnode((char)(OPEN + parno));    } else    ret = (char *)NULL;   
421:    }       /* Make a closing node, and hook it on the end. */ -  ender = regnode((paren) ? CLOSE + parno : END); +  ender = regnode((paren) ? (char)(CLOSE + parno) : END);    regtail(ret, ender);       /* Hook the tails of the branches to the closing node. */
579:    } else    ret = regnode(ANYOF);    if (*regparse == RSQBRAC || *regparse == '-') -  regc(*regparse++); +  regc((char)(*regparse++));    while (*regparse != '\0' && *regparse != RSQBRAC) {    if (*regparse == '-') {    regparse++;
591:    if (class > classend + 1)    FAIL("invalid [] range");    for (; class <= classend; class++) -  regc(class); +  regc((char)class);    regparse++;    }    } else -  regc(*regparse++); +  regc((char)(*regparse++));    }    regc('\0');    if (*regparse != RSQBRAC)
637:    *flagp |= SIMPLE;    ret = regnode(EXACTLY);    while (len > 0) { -  regc(*regparse++); +  regc((char)(*regparse++));    len--;    }    regc('\0');