aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PackBitsTest.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-12-12 15:11:17 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-12 15:11:18 -0800
commit9880607151ca7c2dc6b1a4b9756938bd71913ab5 (patch)
tree2f1cd6ca7cb985a7d9e21e9dd250bf8115f278e8 /tests/PackBitsTest.cpp
parentb927c3cbff0688954fa66a39a6dd5ef85f0b5d48 (diff)
Even more win64 warning fixes
Diffstat (limited to 'tests/PackBitsTest.cpp')
-rw-r--r--tests/PackBitsTest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/PackBitsTest.cpp b/tests/PackBitsTest.cpp
index 2af4f1867d..ce4e8be467 100644
--- a/tests/PackBitsTest.cpp
+++ b/tests/PackBitsTest.cpp
@@ -43,7 +43,7 @@ static void test_pack16(skiatest::Reporter* reporter) {
}
for (int n = 1000; n; n--) {
- size_t size = 50;
+ int size = 50;
uint16_t src[100], src2[100];
uint8_t dst[200];
rand_fill(src, size);
@@ -52,7 +52,7 @@ static void test_pack16(skiatest::Reporter* reporter) {
size_t maxSize = SkPackBits::ComputeMaxSize16(size);
REPORTER_ASSERT(reporter, maxSize >= dstSize);
- size_t srcCount = SkPackBits::Unpack16(dst, dstSize, src2);
+ int 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);
@@ -96,7 +96,7 @@ static void test_pack8(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, match);
}
- for (size_t size = 1; size <= 512; size += 1) {
+ for (uint32_t size = 1; size <= 512; size += 1) {
for (int n = 100; n; n--) {
uint8_t src[600], src2[600];
uint8_t dst[600];
@@ -112,8 +112,8 @@ static void test_pack8(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, match);
for (int j = 0; j < 100; j++) {
- size_t skip = gRand.nextU() % size;
- size_t write = gRand.nextU() % size;
+ uint32_t skip = gRand.nextU() % size;
+ uint32_t write = gRand.nextU() % size;
if (skip + write > size) {
write = size - skip;
}