Commit 60658569 authored by Marius Wachtler's avatar Marius Wachtler

Fix a wrong line number bug at the end of the file

Encountered this one with the mixed tab and spaces test before it got fixed in pypa
parent 173c97c0
......@@ -1064,8 +1064,7 @@ std::string PystonSourceReader::get_line() {
break;
line.push_back(c);
} while (c != '\n' && c != '\x0c');
if (!eof())
++line_number;
++line_number;
return line;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment