Skip to content

Commit 2965c02

Browse files
b-chmielwsnyder
andcommitted
Use std::isspace
Co-authored-by: Wilson Snyder <wsnyder@wsnyder.org>
1 parent 4a20b15 commit 2965c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/V3EmitMk.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ void V3EmitMk::debugTestConcatenation(const char* inputFile) {
995995
EmitMk::FilenameWithScore current{};
996996
while ((*ifp) >> current.m_score >> std::ws) {
997997
char ch;
998-
while (ch = ifp->get(), ch && ch != ' ' && ch != '\t' && ch != '\n' && ch != '\r') {
998+
while (ch = ifp->get(), ch && !std::isspace(ch)) {
999999
current.m_filename.push_back(ch);
10001000
}
10011001
totalScore += current.m_score;

0 commit comments

Comments
 (0)