From 775765f44af9dc5c879fca1b69b75d1b84d807c9 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Fri, 25 Apr 2014 10:00:00 -0400 Subject: [PATCH] Bug 989460 - Follow-up: Fix MOZ_STATIC_ASSERT_VALID_ARG_COUNT when 51st arg is e.g. `true != 1`. r=froydnj --- mfbt/MacroArgs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mfbt/MacroArgs.h b/mfbt/MacroArgs.h index dc4e0db98be..f838b0a9edc 100644 --- a/mfbt/MacroArgs.h +++ b/mfbt/MacroArgs.h @@ -83,8 +83,8 @@ #define MOZ_STATIC_ASSERT_VALID_ARG_COUNT(...) \ static_assert( \ sizeof(MOZ_MACROARGS_STRINGIFY_HELPER((__VA_ARGS__))) != sizeof("()") && \ - MOZ_PASTE_PREFIX_AND_ARG_COUNT(1, __VA_ARGS__) > 10 && \ - MOZ_PASTE_PREFIX_AND_ARG_COUNT(0.0, __VA_ARGS__) < 0.1, \ + (MOZ_PASTE_PREFIX_AND_ARG_COUNT(1, __VA_ARGS__)) > 10 && \ + (MOZ_PASTE_PREFIX_AND_ARG_COUNT(0.0, __VA_ARGS__)) < 0.1, \ "MOZ_STATIC_ASSERT_VALID_ARG_COUNT requires 1 to 50 arguments") /* ; */ /*