Fix compiler warning in rangstr