Fix Visual Studio build warning Fixed warning C4244: '-=' : conversion from 'const double' to 'int', possible loss of data. Change-Id: Ic4691346037767b244e7f71248c2f871f92002f3