avoid truncation double to float warning

Change-Id: I7f5c5f025954120c06fcce2c14915a8138843374