aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-11-23 18:16:44 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-11-23 18:16:44 +0000
commit1ccee0fbfa8e528b3671dfbf4dad5b6f67755e4c (patch)
tree0f72ddc103495a0317879a7f5c0efce068c68c70
parent0986d3bc621b12c3d0367bf7bd25927c7fbfc552 (diff)
downloadgcc-1ccee0fbfa8e528b3671dfbf4dad5b6f67755e4c.zip
gcc-1ccee0fbfa8e528b3671dfbf4dad5b6f67755e4c.tar.gz
gcc-1ccee0fbfa8e528b3671dfbf4dad5b6f67755e4c.tar.bz2
libstdc++: Fix variable declared with wrong type
libstdc++-v3/ChangeLog: * include/bits/semaphore_base.h (__platform_semaphore::_M_try_acquire_until): Fix type of variable.
-rw-r--r--libstdc++-v3/include/bits/semaphore_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/semaphore_base.h b/libstdc++-v3/include/bits/semaphore_base.h
index 0692f95..56333bb 100644
--- a/libstdc++-v3/include/bits/semaphore_base.h
+++ b/libstdc++-v3/include/bits/semaphore_base.h
@@ -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))