Skip to content

Commit ded9027

Browse files
facontidavideclaude
andcommitted
fix implicit-bool-conversion warning in xml_parsing.cpp
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent cb75426 commit ded9027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xml_parsing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void validatePortName(const std::string& name, int line_number)
131131
{
132132
throw RuntimeError("Error at line ", line_str, ": Port name cannot be empty");
133133
}
134-
if(std::isdigit(static_cast<unsigned char>(name[0])))
134+
if(std::isdigit(static_cast<unsigned char>(name[0])) != 0)
135135
{
136136
throw RuntimeError("Error at line ", line_str, ": Port name '", name,
137137
"' cannot start with a digit");

0 commit comments

Comments
 (0)