Skip to content

Instantly share code, notes, and snippets.

@bjfish
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjfish/6c023cc96b9dc20ff7ca to your computer and use it in GitHub Desktop.
Save bjfish/6c023cc96b9dc20ff7ca to your computer and use it in GitHub Desktop.
@Specialization
public Object stringByteSubstring(RubyString string, long index, int length) {
return stringByteSubstring(string, (int) index, length);
}
@Specialization
public Object stringByteSubstring(RubyString string, int index, long length) {
return stringByteSubstring(string, index, (int) length);
}
@Specialization
public Object stringByteSubstring(RubyString string, long index, long length) {
return stringByteSubstring(string, (int) index, (int) length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment