diff options
Diffstat (limited to 'tests/PathTest.cpp')
-rw-r--r-- | tests/PathTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index d879ea6e33..f6c2a7ae6e 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -1808,12 +1808,12 @@ static void test_flattening(skiatest::Reporter* reporter) { // create a buffer that should be much larger than the path so we don't // kill our stack if writer goes too far. char buffer[1024]; - uint32_t size1 = p.writeToMemory(NULL); - uint32_t size2 = p.writeToMemory(buffer); + size_t size1 = p.writeToMemory(NULL); + size_t size2 = p.writeToMemory(buffer); REPORTER_ASSERT(reporter, size1 == size2); SkPath p2; - uint32_t size3 = p2.readFromMemory(buffer); + size_t size3 = p2.readFromMemory(buffer, 1024); REPORTER_ASSERT(reporter, size1 == size3); REPORTER_ASSERT(reporter, p == p2); |