commit | 7a5bcc5f59bdf122217bc8ca7e756e8c76bae9e1 | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Tue May 24 13:23:56 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue May 24 13:23:56 2016 -0700 |
tree | 73363f3d2d23d646de1d4465a9c1fde564198dd9 | |
parent | 5d04fda87747d82f4039cecf3e72b62ddf1ca76d [diff] |
Make Sk32ToBool inline again to silence compiler warning. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2007753003 Review-Url: https://codereview.chromium.org/2007753003
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index 13b662a..baa6ac1 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h
@@ -369,7 +369,7 @@ /** Faster than SkToBool for integral conditions. Returns 0 or 1 */ -static constexpr int Sk32ToBool(uint32_t n) { +static inline constexpr int Sk32ToBool(uint32_t n) { return (n | (0-n)) >> 31; }