Replaced some signed sizes with unsigned.