Fix #1043: set all scan string-locations to have bias, not just the first one.

This commit is contained in:
John Kessenich 2017-09-11 20:35:49 -06:00
parent a25530cc18
commit 5002c26b5e
2 changed files with 9 additions and 9 deletions

View file

@ -222,6 +222,7 @@ inline const TString String(const int i, const int /*base*/ = 10)
struct TSourceLoc {
void init() { name = nullptr; string = 0; line = 0; column = 0; }
void init(int stringNum) { init(); string = stringNum; }
// Returns the name if it exists. Otherwise, returns the string number.
std::string getStringNameOrNum(bool quoteStringName = true) const
{