Fix -Wconversion warning.