Skip to content

Commit

Permalink
[Truffle] Fixed overspecified guards in 'string_byte_character_index'…
Browse files Browse the repository at this point in the history
… primitive.
  • Loading branch information
nirvdrum committed Apr 13, 2015
1 parent 4abd53d commit 0707e3d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -695,7 +695,7 @@ public StringByteCharacterIndexPrimitiveNode(StringByteCharacterIndexPrimitiveNo
super(prev);
}

@Specialization(guards = { "isSingleByteOptimizableOrAsciiCompatible", "!isFixedWidthEncoding", "!isValidUtf8" })
@Specialization(guards = "isSingleByteOptimizableOrAsciiCompatible")
public int stringByteCharacterIndexSingleByte(RubyString string, int index, int start) {
// Taken from Rubinius's String::find_byte_character_index.
return index;
Expand Down

0 comments on commit 0707e3d

Please sign in to comment.