Fix stuffing unsigned int into int variable, causing build warning