Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 989460 - Follow-up: Fix MOZ_STATIC_ASSERT_VALID_ARG_COUNT when 51…
Browse files Browse the repository at this point in the history
…st arg is e.g. `true != 1`. r=froydnj
  • Loading branch information
poiru committed Apr 25, 2014
1 parent 19187d6 commit d897910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mfbt/MacroArgs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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") /* ; */

/*
Expand Down

0 comments on commit d897910

Please sign in to comment.