Index: tests/RecordTestUtils.h |
diff --git a/tests/RecordTestUtils.h b/tests/RecordTestUtils.h |
index db3f02d3a27e99f54bbc88aeeacb169919731fc7..0575b83cdd57ee687aa585eec74763a2be158c68 100644 |
--- a/tests/RecordTestUtils.h |
+++ b/tests/RecordTestUtils.h |
@@ -24,7 +24,7 @@ static const T* assert_type(skiatest::Reporter* r, const SkRecord& record, unsig |
ReadAs<T> reader; |
record.visit<void>(index, reader); |
REPORTER_ASSERT(r, T::kType == reader.type); |
- REPORTER_ASSERT(r, NULL != reader.ptr); |
+ REPORTER_ASSERT(r, SkToBool(reader.ptr)); |
return reader.ptr; |
} |