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