Perform with unsigned int instead of signed int. Differential Revision: https://developer.blender.org/D5402