diff options
Diffstat (limited to 'include/core/SkTypes.h')
-rw-r--r-- | include/core/SkTypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index b453249ea1..9887c91695 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -216,7 +216,7 @@ template <typename D, typename S> D SkTo(S s) { /** Returns 0 or 1 based on the condition */ -#define SkToBool(cond) ((cond) != 0) +#define SkToBool(cond) (bool(cond)) #define SK_MaxS16 32767 #define SK_MinS16 -32767 |