eliminate signedness warnings (issue #5130)