Skip to content

Commit ba0bcc5

Browse files
committed
Use ruby functions if RUBY is defined
1 parent 9001d54 commit ba0bcc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

st.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ get_power2(st_index_t size)
342342
unsigned int n = ST_INDEX_BITS - nlz_intptr(size);
343343
if (n <= MAX_POWER2)
344344
return n < MINIMAL_POWER2 ? MINIMAL_POWER2 : n;
345-
#ifndef NOT_RUBY
345+
#ifdef RUBY
346346
/* Ran out of the table entries */
347347
rb_raise(rb_eRuntimeError, "st_table too big");
348348
#endif

0 commit comments

Comments
 (0)