Fix clang -Wdouble-promotion

gcc instance failed before compiling.
This commit is contained in:
Vasily
2019-02-21 18:48:53 +01:00
committed by username223
parent 4d06360c92
commit edf14b6bf9
@@ -535,7 +535,7 @@ void UtilitiesTabController::eventLoopTick()
vr::ETrackedDeviceProperty::
Prop_DeviceBatteryPercentage_Float );
int batteryState = static_cast<int>(
ceil( static_cast<float>( battery * 5 ) ) );
ceil( static_cast<double>( battery * 5 ) ) );
if ( batteryState != m_batteryState[i] )
{