aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFPrimitivesTest.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-12-12 16:41:46 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-12 16:41:46 -0800
commitfbaace082745a0e301186b2d3b84af62e2fb87ec (patch)
tree27982934bbf0defcc05ee93bdae535cd2863b8ff /tests/PDFPrimitivesTest.cpp
parentf6139f7c3867a70a750620cd34ce10338a54086e (diff)
DM warning-free on win64
Diffstat (limited to 'tests/PDFPrimitivesTest.cpp')
-rw-r--r--tests/PDFPrimitivesTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp
index 60a1099136..ca18b2aebf 100644
--- a/tests/PDFPrimitivesTest.cpp
+++ b/tests/PDFPrimitivesTest.cpp
@@ -58,9 +58,9 @@ static bool stream_equals(const SkDynamicMemoryWStream& stream, size_t offset,
static bool stream_contains(const SkDynamicMemoryWStream& stream,
const char* buffer) {
SkAutoDataUnref data(stream.copyToData());
- int len = strlen(buffer); // our buffer does not have EOSs.
+ size_t len = strlen(buffer); // our buffer does not have EOSs.
- for (int offset = 0 ; offset < (int)data->size() - len; offset++) {
+ for (size_t offset = 0 ; offset < data->size() - len; offset++) {
if (memcmp(data->bytes() + offset, buffer, len) == 0) {
return true;
}