Fix for undefined symbol rb_long2int

This commit is contained in:
Kyle Banker 2011-01-03 16:15:58 -05:00
parent dbcc9042bf
commit bc5dcdfc7f
1 changed files with 2 additions and 2 deletions

View File

@ -31,14 +31,14 @@
# define RSTRING_LEN(v) RSTRING(v)->len
#endif
#ifndef RSTRING_LENINT
# define RSTRING_LENINT(v) rb_long2int(RSTRING_LEN(v))
# define RSTRING_LENINT(v) (int)(RSTRING_LEN(v))
#endif
#ifndef RARRAY_LEN
# define RARRAY_LEN(v) RARRAY(v)->len
#endif
#ifndef RARRAY_LENINT
# define RARRAY_LENINT(v) rb_long2int(RARRAY_LEN(v))
# define RARRAY_LENINT(v) (int)(RARRAY_LEN(v))
#endif
#if HAVE_RUBY_ST_H