diff options
Diffstat (limited to 'tests/RecordTestUtils.h')
-rw-r--r-- | tests/RecordTestUtils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/RecordTestUtils.h b/tests/RecordTestUtils.h index db3f02d3a2..0575b83cdd 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; } |