Fix win7 BitmapTest
authorhalcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 Dec 2013 19:25:21 +0000 (19:25 +0000)
committerhalcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 Dec 2013 19:25:21 +0000 (19:25 +0000)
BUG=
R=bungeman@google.com

Review URL: https://codereview.chromium.org/110223005

git-svn-id: http://skia.googlecode.com/svn/trunk@12675 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/BitmapTest.cpp

index a6859fabf004c276f91fb22a14735ebe59972a14..250b6da32c2aa748db19d8996a6dfc3d2384ec06 100644 (file)
@@ -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());
         }
     }
 }