if ( index < 0 ) index = 0; 
/** For first range index negative values are ok. For second return value of 0 means don't use second bound. We need to make it -1 so that all elements are skipped. */ if ( index == 0 ) index = -1; 
static int adjust_index( int index, int length ){    if ( index < 0 )        index = length + 1 + index;    if ( index < 0 )        index = 0;    return index;}
2658	/local/tlutelli/issta_data/temp/c/2005_temp/2005/2658/76c0cee6aa71266a3757c69a349fb1aaeb41ada1/expand.c/buggy/historic/jam/src/expand.c