Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ext/stringio/StringIO.java
Original file line number Diff line number Diff line change
@@ -1069,7 +1069,7 @@ public IRubyObject ungetc(ThreadContext context, IRubyObject arg) {

if (arg.isNil()) return arg;
if (arg instanceof RubyInteger) {
int len, cc = ((RubyInteger) arg).getIntValue();
int len, cc = RubyNumeric.num2int(arg);
byte[] buf = new byte[16];

enc = getEncoding();

0 comments on commit ddfee9d

Please sign in to comment.