Adding int cast to prevent warning
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 3 Feb 2014 19:40:32 +0000 (19:40 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 3 Feb 2014 19:40:32 +0000 (19:40 +0000)
BUG=skia:
R=fmalita@google.com, fmalita@chromium.org, bsalomon@google.com, bsalomon@chromium.org

Author: sugoi@chromium.org

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

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

samplecode/SamplePictFile.cpp

index 5cd16bddc1bdd6d3e9c16cf3e33749ea3a356825..ea155244764758a0619c99bcef39327a3cf1201d 100644 (file)
@@ -94,7 +94,7 @@ protected:
     }
 
     virtual void onDrawContent(SkCanvas* canvas) SK_OVERRIDE {
-        SkASSERT(fBBox < kBBoxTypeCount);
+        SkASSERT(static_cast<int>(fBBox) < kBBoxTypeCount);
         SkPicture** picture = fPictures + fBBox;
 
         if (!*picture) {