libstdc++-v3/ChangeLog: * include/bits/regex.tcc: Fix -Wsign-compare warning. ---
Tested x86_64-linux. Pushed to trunk. libstdc++-v3/include/bits/regex.tcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/bits/regex.tcc b/libstdc++-v3/include/bits/regex.tcc index 5cf217ef777..5d2584e9d6d 100644 --- a/libstdc++-v3/include/bits/regex.tcc +++ b/libstdc++-v3/include/bits/regex.tcc @@ -444,7 +444,7 @@ namespace __detail __num *= 10; __num += __traits.value(*__next++, 10); } - if (0 <= __num && __num < this->size()) + if (0 <= __num && size_t(__num) < this->size()) __output(__num); } else -- 2.47.1