r343673 fixed an integer overflow with huge amounts of memory by
upgrading the data type for the allocation size from an int.
It is clear that the hashsize cannot be negative so unsigning the
related variables does no harm and it should let us handle slightly
bigger values. Even if we cannot handle bigger values unsigning should
still have the advantage of simplifying the implicit casting.