pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:1769:    /* Next we test if the new string can be shrunk    * if all characters in the new string can fit in a string    * of a lower magnitude, it must be shrunk    */       if(min_magnitude(old_value) == a->size_shift &&    min_magnitude(c) < min_magnitude(old_value))    {    /* We *might* need to shrink the string */    struct pike_string *b; -  int size,tmp; +  unsigned int size,tmp;       switch(a->size_shift)    {    case 0:    Pike_fatal("Unshrinkable!\n");       case 1:    /* Test if we *actually* can shrink it.. */    if(find_magnitude1(STR1(a),index)) break;    if(find_magnitude1(STR1(a)+index+1,a->len-index-1))