aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-17 11:30:23 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-17 13:24:58 +0900
commitba0bcc52039a40d2a013de4e05c9fbc62e4f4be2 (patch)
tree5b7ca60d18c916d3ffbceb1e26db828afcd8ce25 /st.c
parent9001d54788568814a691a4f1dd86db47cf232e03 (diff)
downloadruby-ba0bcc52039a40d2a013de4e05c9fbc62e4f4be2.tar.gz
Use ruby functions if `RUBY` is defined
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 456e61a7d7..2fc600760c 100644
--- a/st.c
+++ b/st.c
@@ -342,7 +342,7 @@ get_power2(st_index_t size)
unsigned int n = ST_INDEX_BITS - nlz_intptr(size);
if (n <= MAX_POWER2)
return n < MINIMAL_POWER2 ? MINIMAL_POWER2 : n;
-#ifndef NOT_RUBY
+#ifdef RUBY
/* Ran out of the table entries */
rb_raise(rb_eRuntimeError, "st_table too big");
#endif