Index: tests/Writer32Test.cpp |
diff --git a/tests/Writer32Test.cpp b/tests/Writer32Test.cpp |
index fa024baffdab345d5371a7794ad9046c904aedd2..3116d844dfac07fd6f16338c39c8c7b96e00189f 100644 |
--- a/tests/Writer32Test.cpp |
+++ b/tests/Writer32Test.cpp |
@@ -102,8 +102,8 @@ static void test1(skiatest::Reporter* reporter, SkWriter32* writer) { |
for (size_t i = 0; i < SK_ARRAY_COUNT(data); ++i) { |
REPORTER_ASSERT(reporter, i*4 == writer->bytesWritten()); |
writer->write32(data[i]); |
- uint32_t* addr = writer->peek32(i * 4); |
- REPORTER_ASSERT(reporter, data[i] == *addr); |
+ uint32_t peek = writer->peek32(i * 4); |
+ REPORTER_ASSERT(reporter, data[i] == peek); |
} |
char buffer[sizeof(data)]; |