Skip to content

Commit

Permalink
Hack for issue #236
Browse files Browse the repository at this point in the history
  • Loading branch information
yossigil committed Sep 20, 2016
1 parent 0ede1dd commit d97719e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -65,7 +65,8 @@ private static int firstDifference(final String s1, final String s2) {
* @return a StringLiteral whose literal value is the prefix of length i of
* s */
private static StringLiteral getPrefix(final String s, final int i, final ASTNode n) {
return make.from(n).literal(i == 0 ? "" : s.substring(0, i));
return make.from(n).literal(i <= 0 ? "" : s.substring(0, i));
// Hacke for issue #236
}

/** @param s JD
Expand Down

0 comments on commit d97719e

Please sign in to comment.