WaE - add explicit casting (decimal-types → integer types)
This commit is contained in:
@@ -276,7 +276,7 @@ AnimationParametricFunction::AnimationParametricFunction (const ParametricFuncti
|
||||
|
||||
double AnimationParametricFunction::operator() (const double nX)
|
||||
{
|
||||
const sal_Int32 nIndex0 (nX * maY.size());
|
||||
const sal_Int32 nIndex0 (static_cast<sal_Int32>(nX * maY.size()));
|
||||
const double nX0 (nIndex0 / double(maY.size()-1));
|
||||
const sal_uInt32 nIndex1 (nIndex0 + 1);
|
||||
const double nX1 (nIndex1 / double(maY.size()-1));
|
||||
|
Reference in New Issue
Block a user