| Index: include/core/SkTypes.h
|
| diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
|
| index b3bcc19c170af462845e0342c685a841d6a930c5..5720c30970e5d2ce1ad9f69922caa6a32eeb1163 100644
|
| --- a/include/core/SkTypes.h
|
| +++ b/include/core/SkTypes.h
|
| @@ -257,11 +257,7 @@
|
|
|
| /** Returns 0 or 1 based on the condition
|
| */
|
| -#if defined(_MSC_VER)
|
| - #define SkToBool(cond) (!!(cond)) // MSVC doesn't like a cast.
|
| -#else
|
| - #define SkToBool(cond) static_cast<bool>(cond)
|
| -#endif
|
| +#define SkToBool(cond) ((cond) != 0)
|
|
|
| #define SK_MaxS16 32767
|
| #define SK_MinS16 -32767
|
|
|