Skip to content

Commit 52d8a5d

Browse files
authored
chore: revert IsEscapeCharacter unsigned change (#253)
Fixes #230
1 parent 410b33c commit 52d8a5d

File tree

1 file changed

+2
-2
lines changed
  • cucumber_cpp/library/cucumber_expression

1 file changed

+2
-2
lines changed

cucumber_cpp/library/cucumber_expression/Ast.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ namespace cucumber_cpp::library::cucumber_expression
122122

123123
TokenType Token::TypeOf(char ch)
124124
{
125-
if (std::isspace(ch) != 0)
125+
if (std::isspace(static_cast<unsigned char>(ch)) != 0)
126126
return TokenType::whiteSpace;
127127

128128
if (DemarcationMap().contains(ch))
@@ -133,7 +133,7 @@ namespace cucumber_cpp::library::cucumber_expression
133133

134134
bool Token::CanEscape(char ch)
135135
{
136-
if (std::isspace(ch) != 0)
136+
if (std::isspace(static_cast<unsigned char>(ch)) != 0)
137137
return true;
138138

139139
return ch == '\\' || DemarcationMap().contains(ch);

0 commit comments

Comments
 (0)