From 16ae1c0472b6b7a0922cbad54c5bf456c794e390 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 14 Jan 2019 16:19:55 +0000 Subject: [PATCH] CSS parser - use appropriate storage type for `hue` value (0..320) (#4020) --- include/mapnik/css_color_grammar_x3_def.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mapnik/css_color_grammar_x3_def.hpp b/include/mapnik/css_color_grammar_x3_def.hpp index 2d6153483..643cbbc3a 100644 --- a/include/mapnik/css_color_grammar_x3_def.hpp +++ b/include/mapnik/css_color_grammar_x3_def.hpp @@ -218,7 +218,7 @@ struct named_colors_ : x3::symbols x3::uint_parser hex2; x3::uint_parser hex1; -x3::uint_parser dec3; +x3::uint_parser dec3; // starting rule css_color_grammar_type const css_color("css_color"); @@ -390,7 +390,7 @@ auto const rgba_color_percent_def = lit("rgba") >> lit(',') >> dec3[percent_blue] >> lit('%') >> lit(',') >> double_[opacity] >> lit(')'); -auto const hsl_values = x3::rule> {} = +auto const hsl_values = x3::rule> {} = lit("hsl") >> lit('(') >> dec3 >> lit(',') >> dec3 >> lit('%') @@ -398,7 +398,7 @@ auto const hsl_values = x3::rule> attr(1.0) >> lit(')') ; -auto const hsla_values = x3::rule> {} = +auto const hsla_values = x3::rule> {} = lit("hsla") >> lit('(') >> dec3 >> lit(',') >> dec3 >> lit('%')