Branch: Tag:

2015-04-22

2015-04-22 10:27:26 by Martin Nilsson <nilsson@opera.com>

strlen returns size_t

250:   {    register regexp *r = NULL;    register char *scan; -  register char *longest; -  register ptrdiff_t len; +     int flags;    short *exp2,*dest,c;   
358:    * absence of others.    */    if (flags & SPSTART) { -  longest = NULL; -  len = 0; +  char *longest = NULL; +  size_t len = 0;    for (; scan != NULL; scan = regnext(scan))    if (OP(scan) == EXACTLY &&    strlen(OPERAND(scan)) >= (size_t)len) {