diff options
Diffstat (limited to 'build2/test/script/regex.hxx')
-rw-r--r-- | build2/test/script/regex.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
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<char> (c.special ())) ? digit : 0); } |