Fix bug caused by improper casting in RGB::ToUInt32().