aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@yahooinc.com>2022-05-27 09:37:37 +0000
committerHåvard Pettersen <havardpe@yahooinc.com>2022-05-27 09:37:37 +0000
commit6479bc7c18772e94e01b7c3f93a5a8df9b82e08e (patch)
treecd954e35d9b7651f60a50e40b72f73ba401e8f47 /vespalib/src
parentd51c640997f288b684eeecefcd46658a1005ecf2 (diff)
fix undefined behavior
more testing means uncovering more undefined behavior
Diffstat (limited to 'vespalib/src')
-rw-r--r--vespalib/src/vespa/vespalib/util/rcuvector.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/util/rcuvector.hpp b/vespalib/src/vespa/vespalib/util/rcuvector.hpp
index 35a5fda81e4..97a73a73cc9 100644
--- a/vespalib/src/vespa/vespalib/util/rcuvector.hpp
+++ b/vespalib/src/vespa/vespalib/util/rcuvector.hpp
@@ -148,7 +148,7 @@ template <typename T>
void
RcuVectorBase<T>::update_vector_start()
{
- _vector_start.store(&_data[0], std::memory_order_release);
+ _vector_start.store(_data.data(), std::memory_order_release);
}
template <typename T>