WaE - add explicit casting (decimal-types → integer types)

This commit is contained in:
Christian Lohmaier
2011-05-16 23:22:50 +02:00
parent 0183c94caf
commit 0b26358b96
4 changed files with 6 additions and 6 deletions

View File

@@ -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));