Skip to content

Commit e3fb69e

Browse files
committed
Add proper cast
1 parent 6e82b57 commit e3fb69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/pq/connection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ namespace tao::pq
177177
{
178178
[[nodiscard]] constexpr auto is_identifier( const std::string_view value ) noexcept -> bool
179179
{
180-
return !value.empty() && ( value.find_first_not_of( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" ) == std::string_view::npos ) && ( std::isdigit( value[ 0 ] ) == 0 );
180+
return !value.empty() && ( value.find_first_not_of( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" ) == std::string_view::npos ) && ( std::isdigit( static_cast< unsigned char >( value[ 0 ] ) ) == 0 );
181181
}
182182

183183
} // namespace

0 commit comments

Comments
 (0)