Branch: Tag:

2017-11-04

2017-11-04 18:05:38 by Arne Goedeke <el@laramies.com>

replace(): code cleanup

Make coverty happy. Fixes CID 742518.

3843:       switch(str->size_shift)    { -  case 0: f = (replace_searchfunc)THIS->mojt.vtab->func0; break; -  case 1: f = (replace_searchfunc)THIS->mojt.vtab->func1; break; -  case 2: f = (replace_searchfunc)THIS->mojt.vtab->func2; break; +  case eightbit: f = (replace_searchfunc)THIS->mojt.vtab->func0; break; +  case sixteenbit: f = (replace_searchfunc)THIS->mojt.vtab->func1; break; +  case thirtytwobit: f = (replace_searchfunc)THIS->mojt.vtab->func2; break; +  default: UNREACHABLE();    }       if(del->len == to->len)