Skip to content

Commit

Permalink
[Truffle] Fix error on String.num_bytes=(long)
Browse files Browse the repository at this point in the history
* Fix #2839.
  • Loading branch information
eregon committed Apr 17, 2015
1 parent 1035a86 commit ad79ae5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1569,7 +1569,7 @@ public RubyString modifyBang(RubyString string) {
}

@RubiniusOnly
@CoreMethod(names = "num_bytes=", required = 1)
@CoreMethod(names = "num_bytes=", lowerFixnumParameters = 0, required = 1)
public abstract static class SetNumBytesNode extends CoreMethodNode {

public SetNumBytesNode(RubyContext context, SourceSection sourceSection) {
Expand Down

0 comments on commit ad79ae5

Please sign in to comment.