Fixing narrowing from int to unsigned.