aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf/SkPDFDevice.cpp')
-rw-r--r--src/pdf/SkPDFDevice.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index 5724b1af6e..4f214897a7 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -42,6 +42,7 @@
#include "SkTextFormatParams.h"
#include "SkUtils.h"
#include "SkXfermodeInterpretation.h"
+#include "SkClipOpPriv.h"
#define DPI_FOR_RASTER_SCALE_ONE 72
@@ -199,8 +200,8 @@ static_assert(SkRegion::kReverseDifference_Op == (int)kReverseDifference_SkPathO
"region_pathop_mismatch");
static SkPathOp region_op_to_pathops_op(SkClipOp op) {
- SkASSERT(op >= 0);
- SkASSERT(op <= kReverseDifference_SkClipOp);
+ SkASSERT(static_cast<int>(op) >= 0);
+ SkASSERT(static_cast<int>(op) <= static_cast<int>(kReverseDifference_SkClipOp));
return (SkPathOp)op;
}