mirror of https://github.com/catchorg/Catch2.git
Fixed Visual Studio analyze warning about isalum requiring unsigned char
This commit is contained in:
parent
35f510545d
commit
fad27a3364
|
@ -30,7 +30,7 @@ namespace Catch {
|
|||
return TestCaseInfo::None;
|
||||
}
|
||||
inline bool isReservedTag( std::string const& tag ) {
|
||||
return parseSpecialTag( tag ) == TestCaseInfo::None && tag.size() > 0 && !isalnum( tag[0] );
|
||||
return parseSpecialTag( tag ) == TestCaseInfo::None && tag.size() > 0 && !isalnum( static_cast<unsigned char>(tag[0]) );
|
||||
}
|
||||
inline void enforceNotReservedTag( std::string const& tag, SourceLineInfo const& _lineInfo ) {
|
||||
if( isReservedTag( tag ) ) {
|
||||
|
|
Loading…
Reference in New Issue