Fix truncation from double to float warning.