diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-06-17 11:30:23 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-06-17 13:24:58 +0900 |
commit | ba0bcc52039a40d2a013de4e05c9fbc62e4f4be2 (patch) | |
tree | 5b7ca60d18c916d3ffbceb1e26db828afcd8ce25 /st.c | |
parent | 9001d54788568814a691a4f1dd86db47cf232e03 (diff) |
Use ruby functions if `RUBY` is defined
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7949
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |