Fix conversion from float/double to unsigned int