Revert "More unsigned ints because of undefined integer overflow behaviour"

This reverts commit 623223354a2b103443e4554cddc218d8dce2c3d2.