fix annoying signedness comparison warnings