Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1040)

Unified Diff: samplecode/SampleHairline.cpp

Issue 147683003: fix more 64bit warnings (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samplecode/SampleEncode.cpp ('k') | samplecode/SamplePatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « samplecode/SampleEncode.cpp ('k') | samplecode/SamplePatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698