fix: comparison involving different types

difference_type does not necessary need to be of type int or size_t