Chromium Code Reviews| Index: include/core/SkTDArray.h |
| diff --git a/include/core/SkTDArray.h b/include/core/SkTDArray.h |
| index 08478c78515630f995c8528bb1f89b2f4c5cdc16..31a11c7f3ea0c9a23e8d4f45f97a8a597873eee9 100644 |
| --- a/include/core/SkTDArray.h |
| +++ b/include/core/SkTDArray.h |
| @@ -218,7 +218,7 @@ public: |
| for (; iter < stop; iter++) { |
| if (*iter == elem) { |
| - return (int) (iter - fArray); |
| + return SkToInt(iter - fArray); |
| } |
| } |
| return -1; |