Index: src/pdf/SkPDFGraphicState.cpp |
diff --git a/src/pdf/SkPDFGraphicState.cpp b/src/pdf/SkPDFGraphicState.cpp |
index 6cf66456ab2a47a75340193cb82e4ec08cf9dd08..d063c1505ec4d2d899cad3016ac76e7d867648b5 100644 |
--- a/src/pdf/SkPDFGraphicState.cpp |
+++ b/src/pdf/SkPDFGraphicState.cpp |
@@ -201,7 +201,7 @@ |
SkAutoTUnref<SkPDFDict> dict(SkNEW_ARGS(SkPDFDict, ("ExtGState"))); |
dict->insertName("Type", "ExtGState"); |
- SkScalar alpha = SkIntToScalar(fAlpha) / 0xFF; |
+ SkScalar alpha = SkScalarDiv(fAlpha, 0xFF); |
dict->insertScalar("CA", alpha); |
dict->insertScalar("ca", alpha); |