remove a useless unsigned->signed conversion