diff options
Diffstat (limited to 'src/animator/SkScript2.h')
-rw-r--r-- | src/animator/SkScript2.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/animator/SkScript2.h b/src/animator/SkScript2.h index 33e2af7fee..d182e8c7c5 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 { |