diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-03-20 04:59:37 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-03-20 04:59:37 +0000 |
commit | 04225dcdec5a01bc9889b7fb03e7aceb87fccc6e (patch) | |
tree | 48d7298be4647a1620e7b2ef722d725ba6ce88ab /tests/PackBitsTest.cpp | |
parent | 49f0ff25a046d6001dc2d095b6fa3c30f0f46b6a (diff) |
build with -Wall
fix associated warnings (at least on gcc 4.0.1)
git-svn-id: http://skia.googlecode.com/svn/trunk@129 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PackBitsTest.cpp')
-rw-r--r-- | tests/PackBitsTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PackBitsTest.cpp b/tests/PackBitsTest.cpp index fc11fb26a9..22de3c3b1d 100644 --- a/tests/PackBitsTest.cpp +++ b/tests/PackBitsTest.cpp @@ -45,7 +45,7 @@ static void test_pack16(skiatest::Reporter* reporter) { size_t maxSize = SkPackBits::ComputeMaxSize16(size); REPORTER_ASSERT(reporter, maxSize >= dstSize); - int srcCount = SkPackBits::Unpack16(dst, dstSize, src2); + size_t srcCount = SkPackBits::Unpack16(dst, dstSize, src2); REPORTER_ASSERT(reporter, size == srcCount); bool match = memcmp(src, src2, size * sizeof(uint16_t)) == 0; REPORTER_ASSERT(reporter, match); @@ -99,7 +99,7 @@ static void test_pack8(skiatest::Reporter* reporter) { size_t maxSize = SkPackBits::ComputeMaxSize8(size); REPORTER_ASSERT(reporter, maxSize >= dstSize); - int srcCount = SkPackBits::Unpack8(dst, dstSize, src2); + size_t srcCount = SkPackBits::Unpack8(dst, dstSize, src2); REPORTER_ASSERT(reporter, size == srcCount); bool match = memcmp(src, src2, size * sizeof(uint8_t)) == 0; REPORTER_ASSERT(reporter, match); |