fix warnings (#505)

This commit is contained in:
Denis Angell
2025-04-30 11:51:58 +02:00
committed by GitHub
parent 7b581443d1
commit 80a7197590
13 changed files with 18 additions and 39 deletions

View File

@@ -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