aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 515a27aa0b..8a61e16b25 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -48,7 +48,7 @@ extern "C" {
# ifdef UNREACHABLE
# define ASSUME(x) (LIKELY(!!(x)) ? (void)0 : UNREACHABLE)
# else
-# define ASSUME(x) ((void)0)
+# define ASSUME(x) ((void)(x))
# endif
#endif
#ifndef UNREACHABLE