aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2024-03-02 18:19:06 +0100
committerTor Egge <Tor.Egge@online.no>2024-03-02 18:19:06 +0100
commitb1a71b4ffe69c26089fd0d5103aedccf915e777e (patch)
tree23528f4699f02d59684dc7c0decf67244c5d0373 /searchlib
parentbba9aabfbbb18021416dafac40348e04fe64c211 (diff)
Avoid bad alignof usage.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/flow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/queryeval/flow.h b/searchlib/src/vespa/searchlib/queryeval/flow.h
index 785a4c5e63c..ba0235991a8 100644
--- a/searchlib/src/vespa/searchlib/queryeval/flow.h
+++ b/searchlib/src/vespa/searchlib/queryeval/flow.h
@@ -391,7 +391,7 @@ private:
template <typename FLOW> struct type_tag{};
template <typename FLOW> AnyFlow(InFlow in_flow, type_tag<FLOW>) noexcept {
using stored_type = Wrapper<FLOW>;
- static_assert(alignof(stored_type) <= alignof(_space));
+ static_assert(alignof(stored_type) <= 8);
static_assert(sizeof(stored_type) <= sizeof(_space));
API *upcasted = ::new (static_cast<void*>(_space)) stored_type(in_flow);
(void) upcasted;