commit 0213518: [Minor] Add missing namespace
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Jan 15 12:35:04 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-01-15 12:28:15 +0000
URL: https://github.com/rspamd/rspamd/commit/0213518a5fa2d027e42cdc9f5603148397ec56a2 (HEAD -> master)
[Minor] Add missing namespace
---
src/libserver/composites/composites_manager.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libserver/composites/composites_manager.cxx b/src/libserver/composites/composites_manager.cxx
index c73c5b553..bf56fe675 100644
--- a/src/libserver/composites/composites_manager.cxx
+++ b/src/libserver/composites/composites_manager.cxx
@@ -88,7 +88,7 @@ composites_manager::add_composite(std::string_view composite_name, const ucl_obj
const auto &composite = new_composite(composite_name, expr, composite_expression);
- auto score = isnan(cfg->unknown_weight) ? 0.0 : cfg->unknown_weight;
+ auto score = std::isnan(cfg->unknown_weight) ? 0.0 : cfg->unknown_weight;
val = ucl_object_lookup(obj, "score");
if (val != nullptr) {
@@ -160,7 +160,7 @@ composites_manager::add_composite(std::string_view composite_name,
return nullptr;
}
- auto score = isnan(cfg->unknown_weight) ? 0.0 : cfg->unknown_weight;
+ auto score = std::isnan(cfg->unknown_weight) ? 0.0 : cfg->unknown_weight;
rspamd_config_add_symbol(cfg, composite_name.data(), score,
composite_name.data(), "composite",
0,
More information about the Commits
mailing list