diff --git a/frameworks/native/include/seq_packet_socket_client.h b/frameworks/native/include/seq_packet_socket_client.h index 90fdf01b26f2598f83fc25ad7612ab3a77dcc6a9..4549131ff8eeb569f950e836dc869cae3fc1cf1d 100644 --- a/frameworks/native/include/seq_packet_socket_client.h +++ b/frameworks/native/include/seq_packet_socket_client.h @@ -30,7 +30,7 @@ class SeqPacketSocketClient : public SocketClient { public: SeqPacketSocketClient(std::string serverPath, int socketOption) : SocketClient(serverPath, SOCK_SEQPACKET) { - int socketType = SOCK_SEQPACKET | (socketOption & allowOption); + int socketType = SOCK_SEQPACKET | ((uint32_t)socketOption & (uint32_t)allowOption); SetType(socketType); } ~SeqPacketSocketClient() = default;