Skip to content

Commit cd4f43d

Browse files
committed
fix flipped sense on ASSERT()
1 parent acd3fcc commit cd4f43d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visibility.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# define ASSERT(x) assert(x)
1818
#else
1919
# define UNREACHABLE(x) __builtin_unreachable()
20-
# define ASSERT(x) do { if (x) __builtin_unreachable(); } while(0)
20+
# define ASSERT(x) do { if (!(x)) __builtin_unreachable(); } while(0)
2121
#endif
2222

2323
#define LIKELY(x) __builtin_expect(x, 1)

0 commit comments

Comments
 (0)