Skip to content

Commit 475b358

Browse files
authored
Merge pull request #314 from ydah/fix-jruby-head
Fix JRuby build: update RubyArray#subseq call to match new API signature
2 parents c863a36 + c43690d commit 475b358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/racc/com/headius/racc/Cparse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private static IRubyObject get_stack_tail(ThreadContext context, RubyArray stack
105105
if (len < 0) return context.nil;
106106
int size = stack.size();
107107
len = Math.min(len, size);
108-
return stack.subseq(size - len, len);
108+
return stack.subseq(context.runtime.getArray(), (long)(size - len), (long)len, false);
109109
}
110110

111111
private static void cut_stack_tail(ThreadContext context, RubyArray stack, int len) {

0 commit comments

Comments
 (0)