Skip to content

Commit 25988a1

Browse files
committed
Fix compilation errors
1 parent a3c9318 commit 25988a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

simplecpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,9 @@ void simplecpp::TokenList::readfile(Stream &stream, const std::string &filename,
774774
else
775775
msg += "undefined behavior";
776776
if (cstd != CUnknown)
777-
msg += " in " + getCStdName(cstd);
777+
msg += std::string(" in ") + getCStdName(cstd);
778778
else if (cppstd != CPPUnknown)
779-
msg += " in " + getCppStdName(cppstd);
779+
msg += std::string(" in ") + getCppStdName(cppstd);
780780
msg += ".";
781781
}
782782
simplecpp::Output err{

0 commit comments

Comments
 (0)