Skip to content

Commit

Permalink
fix flipped sense on ASSERT()
Browse files Browse the repository at this point in the history
  • Loading branch information
DHowett committed Jan 22, 2018
1 parent acd3fcc commit cd4f43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# define ASSERT(x) assert(x)
#else
# define UNREACHABLE(x) __builtin_unreachable()
# define ASSERT(x) do { if (x) __builtin_unreachable(); } while(0)
# define ASSERT(x) do { if (!(x)) __builtin_unreachable(); } while(0)
#endif

#define LIKELY(x) __builtin_expect(x, 1)
Expand Down

0 comments on commit cd4f43d

Please sign in to comment.