Skip to content

Commit 23ab6e7

Browse files
glankkdanmar
andauthored
Update simplecpp.cpp
Co-authored-by: Daniel Marjamäki <daniel.marjamaki@gmail.com>
1 parent 0cca41f commit 23ab6e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ void simplecpp::TokenList::readfile(Stream &stream, const std::string &filename,
767767
msg += "Line number zero is undefined behavior.";
768768
} else {
769769
msg += "Line numbers above " + std::to_string(maxline) + " are " +
770-
(cppstd == CPP26 ? "conditionally supported" : "undefined behavior") +
770+
(cppstd >= CPP26 ? "conditionally supported" : "undefined behavior") +
771771
" in " + (std_is_c ? getCStdName(cstd) : getCppStdName(cppstd)) + ".";
772772
}
773773
simplecpp::Output err{

0 commit comments

Comments
 (0)