From fbd86a218a4477fb505aff76713f3bd75d683a38 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 25 Dec 2017 01:17:55 +0300 Subject: Adapt regex to digit(wchar_t) added to libbutl --- build2/test/script/regex.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build2/test/script/regex.hxx') diff --git a/build2/test/script/regex.hxx b/build2/test/script/regex.hxx index c8c3877..a3a0d2d 100644 --- a/build2/test/script/regex.hxx +++ b/build2/test/script/regex.hxx @@ -462,7 +462,8 @@ namespace std is (mask m, char_type c) const { return m == - (c.type () == line_type::special && build2::digit (c.special ()) + (c.type () == line_type::special && c.special () >= 0 && + build2::digit (static_cast (c.special ())) ? digit : 0); } -- cgit v1.1