Use unsigned type for working variable.