libstdc++: Fix -Wsign-compare in std::latch::count_down
commitf5021ce9aa6be524beca99e0bbd0180b4e53029b
authorJonathan Wakely <jwakely@redhat.com>
Fri, 4 Oct 2024 17:11:06 +0000 (4 18:11 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 9 Oct 2024 12:41:06 +0000 (9 13:41 +0100)
tree21f5fb5785400f264a19f326d51bbf9210f4af5a
parent361d230fd7800a7e749aba8ed020f54f5c26d504
libstdc++: Fix -Wsign-compare in std::latch::count_down

Also add assertions for the precondition on the parameter's value.

libstdc++-v3/ChangeLog:

* include/std/latch (latch::count_down): Add assertions for
preconditions. Cast parameter to avoid -Wsign-compare on some
targets.
libstdc++-v3/include/std/latch