Fixes to 8f1684b7bb, merge pull request 52.

This commit is contained in:
John Kessenich 2015-08-06 22:02:24 -06:00
parent 8f1684b7bb
commit 306695360d
5 changed files with 11 additions and 11 deletions

View file

@ -172,7 +172,7 @@ protected:
void advance()
{
++currentChar;
if (currentChar >= static_cast<size_t>(lengths[currentSource])) {
if (currentChar >= lengths[currentSource]) {
++currentSource;
if (currentSource < numSources) {
loc[currentSource].string = loc[currentSource - 1].string + 1;