summaryrefslogtreecommitdiff
path: root/core/SkRegionPriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/SkRegionPriv.h')
-rw-r--r--core/SkRegionPriv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/SkRegionPriv.h b/core/SkRegionPriv.h
index f299f3a9..c8f000df 100644
--- a/core/SkRegionPriv.h
+++ b/core/SkRegionPriv.h
@@ -29,7 +29,7 @@ static int compute_intervalcount(const SkRegion::RunType runs[]) {
SkASSERT(curr[1] < SkRegion::kRunTypeSentinel);
curr += 2;
}
- return (curr - runs) >> 1;
+ return SkToInt((curr - runs) >> 1);
}
#endif
@@ -213,7 +213,7 @@ public:
#ifdef SK_DEBUG
// +1 to skip the last Y-sentinel
- int runCount = runs - this->writable_runs() + 1;
+ int runCount = SkToInt(runs - this->writable_runs() + 1);
SkASSERT(runCount == fRunCount);
#endif