mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use ruby functions if RUBY
is defined
This commit is contained in:
parent
9001d54788
commit
ba0bcc5203
Notes:
git
2023-06-17 06:45:24 +00:00
1 changed files with 1 additions and 1 deletions
2
st.c
2
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue