TRECISION: Fix GCC Signed vs. Unsigned Comparison Warning

This commit is contained in:
D G Turner 2021-06-19 16:03:53 +01:00
parent beb0a88120
commit 3d6cdf3e7d

View File

@ -161,7 +161,7 @@ void AnimManager::playMovie(const Common::String &filename, int startFrame, int
// If the video has a single choice, and it starts from the beginning,
// ignore the calculated end frame and play all of it
if (singleChoice && startFrame < 10 && endFrame < smkDecoder->getFrameCount() - 1)
if (singleChoice && startFrame < 10 && endFrame < (int)smkDecoder->getFrameCount() - 1)
endFrame = smkDecoder->getFrameCount() - 1;
setVideoRange(smkDecoder, startFrame, endFrame);