Skip to content

Commit 8a19d64

Browse files
committed
Return zero from truncate
See 16847fe
1 parent c20c34e commit 8a19d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/java/org/jruby/ext/stringio/StringIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ public IRubyObject truncate(ThreadContext context, IRubyObject len) {
14091409
if (locked) unlock(ptr);
14101410
}
14111411

1412-
return len;
1412+
return RubyFixnum.zero(context.runtime);
14131413
}
14141414

14151415
@JRubyMethod(name = "ungetc")

0 commit comments

Comments
 (0)