Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] - String#size should use StringSupport.strLengthFromRubyString
  • Loading branch information
lucasallan committed Feb 24, 2015
1 parent 19e4c3a commit d3d4f85
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1479,7 +1479,7 @@ public SizeNode(SizeNode prev) {

@Specialization
public int size(RubyString string) {
return string.length();
return StringSupport.strLengthFromRubyString(string);
}
}

Expand Down

0 comments on commit d3d4f85

Please sign in to comment.