From e3fb69eebd32539b50f58f75901530f931083761 Mon Sep 17 00:00:00 2001 From: Daniel Frey Date: Mon, 9 Dec 2024 23:16:40 +0100 Subject: [PATCH] Add proper cast --- src/lib/pq/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/pq/connection.cpp b/src/lib/pq/connection.cpp index bac6eb2..9bdf411 100644 --- a/src/lib/pq/connection.cpp +++ b/src/lib/pq/connection.cpp @@ -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