diff --git a/tests/BitmapTest.cpp b/tests/BitmapTest.cpp index a6859fabf0..250b6da32c 100644 --- a/tests/BitmapTest.cpp +++ b/tests/BitmapTest.cpp @@ -24,7 +24,7 @@ DEF_TEST(Bitmap, reporter) { if (setConf) { REPORTER_ASSERT(reporter, bm.allocPixels(NULL)); } - REPORTER_ASSERT(reporter, (width & height) != bm.empty()); + REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty()); } } }