Fix #1043: set all scan string-locations to have bias, not just the first one.
This commit is contained in:
parent
a25530cc18
commit
5002c26b5e
2 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue