This is an automated email from the ASF dual-hosted git repository. bneradt pushed a commit to branch ipsrv in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git
commit 71b312d03407ab876f3b2d8dab1c47d1bdbe5d24 Author: Alan M. Carroll <[email protected]> AuthorDate: Sat Nov 12 21:59:26 2022 -0600 Vectray - fix empty bug. --- code/include/swoc/Vectray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/include/swoc/Vectray.h b/code/include/swoc/Vectray.h index a4c7246..75eb394 100644 --- a/code/include/swoc/Vectray.h +++ b/code/include/swoc/Vectray.h @@ -357,7 +357,7 @@ auto Vectray<T,N,A>::size() const -> size_type { template<typename T, size_t N, typename A> bool Vectray<T,N,A>::empty() const { return std::visit(swoc::meta::vary{ - [](FixedStore const& fs) { return fs._count > 0; } + [](FixedStore const& fs) { return fs._count == 0; } , [](DynamicStore const& ds) { return ds.empty(); } }, _store); }
