# HG changeset patch # User Chris Seaton # Date 1369117356 25200 # Node ID 5dc05fdcf3c2fb2807628c7220c2493b3d86097b # Parent 20963f52fdd5add0a7d326ac566ea419b5921ae6 Fix SourceSection.getCode. diff -r 20963f52fdd5 -r 5dc05fdcf3c2 graal/com.oracle.truffle.api/src/com/oracle/truffle/api/SourceSection.java --- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/SourceSection.java Fri May 17 22:45:55 2013 +0200 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/SourceSection.java Mon May 20 23:22:36 2013 -0700 @@ -115,7 +115,7 @@ * @return the code as a String object */ public final String getCode() { - return getSource().getCode().substring(charIndex, charLength); + return getSource().getCode().substring(charIndex, charIndex + charLength); } @Override