Needed a signed int, not unsigned.