Skip to content

Commit

Permalink
Added explicit conversions from bool to int
Browse files Browse the repository at this point in the history
  • Loading branch information
hannemn committed Dec 16, 2024
1 parent 00fcce1 commit 647cd81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecal/core/src/cimpl/ecal_monitoring_cimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ extern "C"
{
ECALC_API int eCAL_Monitoring_SetExclFilter(const char* filter_)
{
return(!eCAL::Monitoring::SetExclFilter(std::string(filter_)));
return(static_cast<int>(!eCAL::Monitoring::SetExclFilter(std::string(filter_))));
}

ECALC_API int eCAL_Monitoring_SetInclFilter(const char* filter_)
{
return(!eCAL::Monitoring::SetInclFilter(std::string(filter_)));
return(static_cast<int>(!eCAL::Monitoring::SetInclFilter(std::string(filter_))));
}

ECALC_API int eCAL_Monitoring_SetFilterState(int state_)
{
return(!eCAL::Monitoring::SetFilterState(state_ != 0));
return(static_cast<int>(!eCAL::Monitoring::SetFilterState(state_ != 0)));
}

ECALC_API int eCAL_Monitoring_GetMonitoring(void* buf_, int buf_len_)
Expand Down

0 comments on commit 647cd81

Please sign in to comment.