Chromium Code Reviews| Index: src/utils/SkDashPath.cpp |
| diff --git a/src/utils/SkDashPath.cpp b/src/utils/SkDashPath.cpp |
| index e0cbe9732d24f1ce888e80abe8708851246cec8e..4e34b87eac1b09cb71b20b665ede3de2ed293155 100644 |
| --- a/src/utils/SkDashPath.cpp |
| +++ b/src/utils/SkDashPath.cpp |
| @@ -10,7 +10,7 @@ |
| #include "SkStrokeRec.h" |
| static inline int is_even(int x) { |
| - return (~x) << 31; |
| + return !(x & 1); |
| } |
| static SkScalar find_first_interval(const SkScalar intervals[], SkScalar phase, |