| Index: samplecode/SampleHairline.cpp
|
| diff --git a/samplecode/SampleHairline.cpp b/samplecode/SampleHairline.cpp
|
| index 5da2639115eb7cc943fcbab3ebd1e4b1abd9701c..f08146e672cb1e13e562bbd5ba651b0453aa5fa1 100644
|
| --- a/samplecode/SampleHairline.cpp
|
| +++ b/samplecode/SampleHairline.cpp
|
| @@ -74,11 +74,12 @@ static bool check_bitmap_margin(const SkBitmap& bm, int margin) {
|
| return false;
|
| }
|
| // left column
|
| - if (!check_zeros(bm.getAddr32(i, 0), bm.height(), rb >> 2)) {
|
| + if (!check_zeros(bm.getAddr32(i, 0), bm.height(), SkToInt(rb >> 2))) {
|
| return false;
|
| }
|
| int right = bm.width() - margin + i;
|
| - if (!check_zeros(bm.getAddr32(right, 0), bm.height(), rb >> 2)) {
|
| + if (!check_zeros(bm.getAddr32(right, 0), bm.height(),
|
| + SkToInt(rb >> 2))) {
|
| return false;
|
| }
|
| }
|
|
|