commit b4cf342: [Minor] Add namespace

Vsevolod Stakhov vsevolod at highsecure.ru
Sun Dec 26 20:00:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-12-26 19:59:27 +0000
URL: https://github.com/rspamd/rspamd/commit/b4cf34230c3b811da73bdeeaf626b32a3f4919dc (HEAD -> master)

[Minor] Add namespace

---
 src/libserver/css/css_tokeniser.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/css/css_tokeniser.cxx b/src/libserver/css/css_tokeniser.cxx
index e44c14011..fe547d82c 100644
--- a/src/libserver/css/css_tokeniser.cxx
+++ b/src/libserver/css/css_tokeniser.cxx
@@ -368,7 +368,7 @@ auto css_tokeniser::consume_number() -> struct css_parser_token
 		auto num = g_ascii_strtod(numbuf, &endptr);
 		offset = i;
 
-		if ((endptr && *endptr != '\0') || num >= G_MAXFLOAT || num <= G_MINFLOAT || isnan(num)) {
+		if ((endptr && *endptr != '\0') || num >= G_MAXFLOAT || num <= G_MINFLOAT || std::isnan(num)) {
 			msg_debug_css("invalid number: %s", numbuf);
 			return make_token<css_parser_token::token_type::delim_token>(input[i - 1]);
 		}


More information about the Commits mailing list