Index: src/core/SkAntiRun.h |
diff --git a/src/core/SkAntiRun.h b/src/core/SkAntiRun.h |
index 5ac0e62a6ce99129f356c43709b14c45c5fb2712..8b19036d6c96d6f947984ca6c1f8f1c109318383 100644 |
--- a/src/core/SkAntiRun.h |
+++ b/src/core/SkAntiRun.h |
@@ -23,6 +23,7 @@ public: |
// Return 0-255 given 0-256 |
static inline SkAlpha CatchOverflow(int alpha) { |
+ SkASSERT(alpha >= 0 && alpha <= 256); |
return alpha - (alpha >> 8); |
} |