Fix the fix...

This commit is contained in:
Robin Jadoul 2016-05-30 17:18:37 +02:00
parent 063d73835a
commit 8a817a9eff
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ namespace lxs {
}
else
{
if (idx < end - 1 && input[idx + 1] != '-')
if (idx == end - 1 || (idx < end - 1 && input[idx + 1] != '-'))
used_chars.insert(input[idx]);
else
last_char = input[idx];