aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/regex.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-12-25 01:17:55 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-12-26 13:37:37 +0300
commitfbd86a218a4477fb505aff76713f3bd75d683a38 (patch)
treee07e4660f5d472e67d9f92470a6918aa99fc589e /build2/test/script/regex.cxx
parentab5180c94f87486072c451055cf289413596c22f (diff)
Adapt regex to digit(wchar_t) added to libbutl
Diffstat (limited to 'build2/test/script/regex.cxx')
-rw-r--r--build2/test/script/regex.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/build2/test/script/regex.cxx b/build2/test/script/regex.cxx
index fe8bcb0..5e14e6e 100644
--- a/build2/test/script/regex.cxx
+++ b/build2/test/script/regex.cxx
@@ -341,7 +341,8 @@ namespace std
{
const char_type& c (*b++);
- *m++ = c.type () == line_type::special && build2::digit (c.special ())
+ *m++ = c.type () == line_type::special && c.special () >= 0 &&
+ build2::digit (static_cast<char> (c.special ()))
? digit
: 0;
}