From b4cf34230c3b811da73bdeeaf626b32a3f4919dc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 26 Dec 2021 19:59:27 +0000 Subject: [PATCH] [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(input[i - 1]); } -- 2.39.5