aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CodecTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/CodecTest.cpp')
-rw-r--r--tests/CodecTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp
index ceafa15cb1..52240542c6 100644
--- a/tests/CodecTest.cpp
+++ b/tests/CodecTest.cpp
@@ -1508,7 +1508,7 @@ DEF_TEST(Codec_InvalidAnimated, r) {
auto frameInfos = codec->getFrameInfo();
SkCodec::Options opts;
- for (size_t i = 0; i < frameInfos.size(); i++) {
+ for (int i = 0; static_cast<size_t>(i) < frameInfos.size(); i++) {
opts.fFrameIndex = i;
opts.fHasPriorFrame = frameInfos[i].fRequiredFrame == i - 1;
auto result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes(), &opts);