From ba0bcc52039a40d2a013de4e05c9fbc62e4f4be2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 17 Jun 2023 11:30:23 +0900 Subject: Use ruby functions if `RUBY` is defined --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'st.c') 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 -- cgit v1.2.3