mirror of
https://github.com/Xahau/xahaud.git
synced 2026-08-23 16:30:52 +00:00
fix warnings (#505)
This commit is contained in:
@@ -924,9 +924,8 @@ Reader::getLocationLineAndColumn(Location location) const
|
||||
{
|
||||
int line, column;
|
||||
getLocationLineAndColumn(location, line, column);
|
||||
char buffer[18 + 16 + 16 + 1];
|
||||
sprintf(buffer, "Line %d, Column %d", line, column);
|
||||
return buffer;
|
||||
return "Line " + std::to_string(line) + ", Column " +
|
||||
std::to_string(column);
|
||||
}
|
||||
|
||||
std::string
|
||||
|
||||
Reference in New Issue
Block a user