]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Fix variable declared with wrong type
authorJonathan Wakely <jwakely@redhat.com>
Mon, 23 Nov 2020 18:16:44 +0000 (18:16 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 23 Nov 2020 18:16:44 +0000 (18:16 +0000)
libstdc++-v3/ChangeLog:

* include/bits/semaphore_base.h
(__platform_semaphore::_M_try_acquire_until): Fix type of
variable.

libstdc++-v3/include/bits/semaphore_base.h

index 0692f95f24f21835993ad63e37cdfa02708c56ba..56333bbbfef7179c5b37d5592c158d8c46b2b4a3 100644 (file)
@@ -141,7 +141,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        else
          {
            const typename _Clock::time_point __c_entry = _Clock::now();
-           const __clock_t __s_entry = __clock_t::now();
+           const auto __s_entry = __clock_t::now();
            const auto __delta = __atime - __c_entry;
            const auto __s_atime = __s_entry + __delta;
            if (_M_try_acquire_until_impl(__s_atime))
This page took 0.059576 seconds and 5 git commands to generate.