Explorar el Código

[Minor] Another compilers firefighting

tags/3.3
Vsevolod Stakhov hace 2 años
padre
commit
51a5489a3d
No account linked to committer's email address
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      src/libserver/symcache/symcache_impl.cxx

+ 3
- 1
src/libserver/symcache/symcache_impl.cxx Ver fichero

@@ -455,6 +455,8 @@ auto symcache::resort() -> void
case tsort_mask::TEMP:
return (it->order & (1u << 30));
}

return 100500u; /* Because fuck compilers, that's why */
};

if (tsort_is_marked(it, tsort_mask::PERM)) {
@@ -706,7 +708,7 @@ auto symcache::validate(bool strict) -> bool
auto skipped = !ghost;

if (item->is_scoreable() && g_hash_table_lookup(cfg->symbols, item->symbol.c_str()) == nullptr) {
if (!isnan(cfg->unknown_weight)) {
if (!std::isnan(cfg->unknown_weight)) {
item->st->weight = cfg->unknown_weight;
auto *s = rspamd_mempool_alloc0_type(static_pool,
struct rspamd_symbol);

Cargando…
Cancelar
Guardar