Fixed build on CI/CD

Making type conversions for search_limit explicit
This commit is contained in:
Vasily Nemkov 2022-11-02 17:36:50 +04:00
parent f805538105
commit c994dabb75
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ void parseLDAPServer(LDAPClient::Params & params, const Poco::Util::AbstractConf
params.port = (params.enable_tls == LDAPClient::Params::TLSEnable::YES ? 636 : 389);
if (has_search_limit)
params.search_limit = config.getUInt64(ldap_server_config + ".search_limit");
params.search_limit = static_cast<UInt32>(config.getUInt64(ldap_server_config + ".search_limit"));
}
void parseKerberosParams(GSSAcceptorContext::Params & params, const Poco::Util::AbstractConfiguration & config)

View File

@ -275,7 +275,7 @@ bool LDAPClient::openConnection()
}
{
const int size_limit = params.search_limit;
const int size_limit = static_cast<int>(params.search_limit);
handleError(ldap_set_option(handle, LDAP_OPT_SIZELIMIT, &size_limit));
}