fix some MSVC64 warning about float conversion

Change-Id: I27ab27fc15033d27d0505729f6275fb542c8d473