From 39f54bf183b7395d2b7a86dc51e4e7a40702c4d6 Mon Sep 17 00:00:00 2001 From: Jared Mulconry Date: Sun, 27 Nov 2016 14:35:49 +1100 Subject: [PATCH] Fixed build warnings on MSVC14 x64 in Target Animation source. --- code/TargetAnimation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/TargetAnimation.cpp b/code/TargetAnimation.cpp index 97b15edbb..ecf6f0dcf 100644 --- a/code/TargetAnimation.cpp +++ b/code/TargetAnimation.cpp @@ -100,8 +100,8 @@ void KeyIterator::operator ++() // to our current position on the time line double d0,d1; - d0 = objPos->at ( std::min ( nextObjPos, objPos->size()-1) ).mTime; - d1 = targetObjPos->at( std::min ( nextTargetObjPos, targetObjPos->size()-1) ).mTime; + d0 = objPos->at ( std::min ( nextObjPos, static_cast(objPos->size()-1)) ).mTime; + d1 = targetObjPos->at( std::min ( nextTargetObjPos, static_cast(targetObjPos->size()-1)) ).mTime; // Easiest case - all are identical. In this // case we don't need to interpolate so we can