| Index: include/core/SkMath.h
|
| diff --git a/include/core/SkMath.h b/include/core/SkMath.h
|
| index d9517dd6a228f4bdce4a581385a34633dc05c5e5..d1d0e360d47fe62737aec675c9b8865e97f19734 100644
|
| --- a/include/core/SkMath.h
|
| +++ b/include/core/SkMath.h
|
| @@ -150,7 +150,7 @@ static inline int SkNextLog2(uint32_t value) {
|
| * Returns true if value is a power of 2. Does not explicitly check for
|
| * value <= 0.
|
| */
|
| -static inline bool SkIsPow2(int value) {
|
| +template <typename T> inline bool SkIsPow2(T value) {
|
| return (value & (value - 1)) == 0;
|
| }
|
|
|
|
|