Fix MSVC builds by avoiding a uint to bool warning.
authordeanm@chromium.org <deanm@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 18 Jun 2009 14:46:03 +0000 (14:46 +0000)
committerdeanm@chromium.org <deanm@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 18 Jun 2009 14:46:03 +0000 (14:46 +0000)
warning C4800: 'const uint8_t' : forcing value to bool 'true' or 'false' (performance warning)

Review URL: http://codereview.appspot.com/79043

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

include/core/SkPath.h

index fc323d36fc87a0c0143fd39295d1956bef69dc41..6d4d670c4ae1df1c353b0e84583c8bde791ae871 100644 (file)
@@ -85,7 +85,7 @@ public:
     /** Returns true if the path is flagged as being convex. This is not a
         confirmed by any analysis, it is just the value set earlier.
      */
-    bool isConvex() const { return fIsConvex; }
+    bool isConvex() const { return fIsConvex != 0; }
 
     /** Set the isConvex flag to true or false. Convex paths may draw faster if
         this flag is set, though setting this to true on a path that is in fact