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
This commit is contained in:
bsalomon 2016-05-24 13:23:56 -07:00 committed by Commit bot
parent 5d04fda877
commit 7a5bcc5f59

View File

@ -369,7 +369,7 @@ typedef uint32_t SkMSec;
/** 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;
}