Mercurial > hg > truffle
changeset 5310:31fd58477e44
get rid of compiler warning in jtt.loop.LoopLastIndexOf
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 26 Apr 2012 14:27:00 +0200 |
parents | 19ed2e2391a0 |
children | 46fb141ae20f |
files | graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/loop/LoopLastIndexOf.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/loop/LoopLastIndexOf.java Thu Apr 26 14:19:04 2012 +0200 +++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/loop/LoopLastIndexOf.java Thu Apr 26 14:27:00 2012 +0200 @@ -34,8 +34,9 @@ private final char[] v3 = new char[]{'d', 'b', 'c'}; private final char[] v4 = new char[]{'z', 'a', 'b', 'c'}; - public static int test(char[] source, int sourceOffset, int sourceCount, char[] target, int targetOffset, int targetCount, int fromIndex) { + public static int test(char[] source, int sourceOffset, int sourceCount, char[] target, int targetOffset, int targetCount, int fromIndexParam) { int rightIndex = sourceCount - targetCount; + int fromIndex = fromIndexParam; if (fromIndex < 0) { return -1; }