Add required parens for r13779.

git-svn-id: http://skia.googlecode.com/svn/trunk@13781 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2014-03-12 21:56:23 +00:00
parent 1db03d2fad
commit 2f5820903e

View File

@ -130,7 +130,7 @@ struct SkCompileAssert {
// Uses static_cast<bool>(expr) instead of bool(expr) due to // Uses static_cast<bool>(expr) instead of bool(expr) due to
// https://connect.microsoft.com/VisualStudio/feedback/details/832915 // https://connect.microsoft.com/VisualStudio/feedback/details/832915
#define SK_COMPILE_ASSERT(expr, msg) \ #define SK_COMPILE_ASSERT(expr, msg) \
typedef SkCompileAssert<static_cast<bool>(expr)> \ typedef SkCompileAssert<(static_cast<bool>(expr))> \
msg[static_cast<bool>(expr) ? 1 : -1] SK_UNUSED msg[static_cast<bool>(expr) ? 1 : -1] SK_UNUSED
/* /*