Skip to content

Commit

Permalink
Add proper cast
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Dec 9, 2024
1 parent 6e82b57 commit e3fb69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/pq/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ namespace tao::pq
{
[[nodiscard]] constexpr auto is_identifier( const std::string_view value ) noexcept -> bool
{
return !value.empty() && ( value.find_first_not_of( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" ) == std::string_view::npos ) && ( std::isdigit( value[ 0 ] ) == 0 );
return !value.empty() && ( value.find_first_not_of( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" ) == std::string_view::npos ) && ( std::isdigit( static_cast< unsigned char >( value[ 0 ] ) ) == 0 );
}

} // namespace
Expand Down

0 comments on commit e3fb69e

Please sign in to comment.