Use unsigned int rather than unsigned.