[12632] Remove a compile warning and better test with float