fixed a minor typecasting flaw

This commit is contained in:
2021-07-24 15:28:59 +00:00
parent fe019aef1f
commit b78513ad0a
3 changed files with 25 additions and 24 deletions

View File

@ -473,10 +473,11 @@ static int handle_logopt (hcl_t* hcl, const hcl_bch_t* logstr)
{ "info-", 0, HCL_LOG_INFO | HCL_LOG_DEBUG },
{ "debug-", 0, HCL_LOG_DEBUG },
{ "-fatal", 1, (~HCL_LOG_FATAL & HCL_LOG_ALL_LEVELS) },
{ "-error", 1, (~HCL_LOG_ERROR & HCL_LOG_ALL_LEVELS) },
{ "-warn", 1, (~HCL_LOG_WARN & HCL_LOG_ALL_LEVELS) },
{ "-info", 1, (~HCL_LOG_INFO & HCL_LOG_ALL_LEVELS) }
{ "-fatal", 1, ~HCL_LOG_FATAL },
{ "-error", 1, ~HCL_LOG_ERROR },
{ "-warn", 1, ~HCL_LOG_WARN },
{ "-info", 1, ~HCL_LOG_INFO },
{ "-debug", 1, ~HCL_LOG_DEBUG },
};
cm = hcl_find_bchar_in_bcstr(logstr, ',');