diff --git a/src/Location.cpp b/src/Location.cpp index 811931f..6d88788 100644 --- a/src/Location.cpp +++ b/src/Location.cpp @@ -1,4 +1,5 @@ #include "Location.h" +#include "FormatString/FormatString.hpp" #include Location::Location(int ln, int col, std::string file) : line(ln), column(col), fname(file) @@ -18,7 +19,7 @@ std::string Location::str() const std::string Location::paren_str() const { - return "(" + this->str() + ")"; + return format_string("(%s)", this->str()); } void Location::advance()