diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-26 19:59:27 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-26 19:59:27 +0000 |
commit | b4cf34230c3b811da73bdeeaf626b32a3f4919dc (patch) | |
tree | af7932761343c3372d50584f8e7145feb2f0cbe7 /src/libserver/css | |
parent | f91baff1833441f3d86b63dd282364857eceeda8 (diff) | |
download | rspamd-b4cf34230c3b811da73bdeeaf626b32a3f4919dc.tar.gz rspamd-b4cf34230c3b811da73bdeeaf626b32a3f4919dc.zip |
[Minor] Add namespace
Diffstat (limited to 'src/libserver/css')
-rw-r--r-- | src/libserver/css/css_tokeniser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } |