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

Unified Diff: src/animator/SkScript2.h

Issue 265163003: fix size_t/int warnings (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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 | « src/animator/SkAnimateSet.cpp ('k') | src/animator/SkScriptTokenizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/animator/SkScript2.h
diff --git a/src/animator/SkScript2.h b/src/animator/SkScript2.h
index 33e2af7fee7c9ec46c856d26988926880eeab765..d182e8c7c5dd46b47d291450ed4659f4189751bf 100644
--- a/src/animator/SkScript2.h
+++ b/src/animator/SkScript2.h
@@ -188,8 +188,9 @@ protected:
Branch() {
}
- Branch(Op op, int depth, unsigned offset) : fOffset(offset), fOpStackDepth(depth), fOperator(op),
- fPrimed(kIsNotPrimed), fDone(kIsNotDone) {
+ Branch(Op op, int depth, size_t offset)
+ : fOffset(SkToU16(offset)), fOpStackDepth(depth), fOperator(op)
+ , fPrimed(kIsNotPrimed), fDone(kIsNotDone) {
}
enum Primed {
« no previous file with comments | « src/animator/SkAnimateSet.cpp ('k') | src/animator/SkScriptTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698