Commit 34c7bf5a authored by Ronan's avatar Ronan

fix(core): fix build on Windows (cast to bool)

parent a0ffff02
......@@ -333,7 +333,7 @@ shared_ptr<Participant> ServerGroupChatRoomPrivate::findFilteredParticipant (con
void ServerGroupChatRoomPrivate::subscribeReceived (LinphoneEvent *event) {
L_Q_T(LocalConference, qConference);
qConference->getPrivate()->eventHandler->subscribeReceived(event, capabilities & ServerGroupChatRoom::Capabilities::OneToOne);
qConference->getPrivate()->eventHandler->subscribeReceived(event, !!(capabilities & ServerGroupChatRoom::Capabilities::OneToOne));
}
bool ServerGroupChatRoomPrivate::update (SalCallOp *op) {
......
......@@ -548,7 +548,7 @@ bool Sal::isTransportAvailable (SalTransport tr) {
case SalTransportTCP:
return true;
case SalTransportTLS:
return belle_sip_stack_tls_available(mStack);
return !!belle_sip_stack_tls_available(mStack);
case SalTransportDTLS:
default:
return false;
......@@ -927,7 +927,7 @@ LINPHONE_PUBLIC void sal_set_recv_error (Sal *sal,int value) {
}
LINPHONE_PUBLIC void sal_enable_pending_trans_checking (Sal *sal, bool_t value) {
sal->enablePendingTransactionChecking(value);
sal->enablePendingTransactionChecking(!!value);
}
LINPHONE_PUBLIC void sal_enable_unconditional_answer (Sal *sal, bool_t value) {
......@@ -959,7 +959,7 @@ LINPHONE_PUBLIC void sal_set_transport_timeout (Sal* sal, int timeout) {
}
LINPHONE_PUBLIC void sal_enable_test_features (Sal*ctx, bool_t value) {
ctx->enableTestFeatures(value);
ctx->enableTestFeatures(!!value);
}
LINPHONE_PUBLIC bool_t sal_transport_available (Sal *ctx, SalTransport tr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment