imc: fix undefined float to int conversion