Fix to avoid a compile error due to float to int truncation with GCCGO Upstream-commit: f1562ac658b859bc497a3eb76fe3333fe1240e98 Component: engine