aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-12-15 10:52:51 +0100
committerMartin Ridgers <[email protected]>2021-12-15 10:53:45 +0100
commit3a93c2858c338b0f28a8ab8531a4e31fef481ede (patch)
tree13568aa4204abc6ac541383db75417f2a77c82ee /zenserver/cache/structuredcachestore.cpp
parentFixed "incomplete type" error. (diff)
downloadzen-3a93c2858c338b0f28a8ab8531a4e31fef481ede.tar.xz
zen-3a93c2858c338b0f28a8ab8531a4e31fef481ede.zip
GCC has trouble parsing this sizeof expression without parentheses
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index 280820a4e..8f1754346 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -1397,7 +1397,7 @@ namespace testutils {
IoBuffer CreateBinaryCacheValue(uint64_t Size)
{
- std::vector<uint32_t> Data(size_t(Size / sizeof uint32_t));
+ std::vector<uint32_t> Data(size_t(Size / sizeof(uint32_t)));
std::generate(Data.begin(), Data.end(), [Idx = 0]() mutable { return Idx++; });
IoBuffer Buf(IoBuffer::Clone, Data.data(), Data.size() * sizeof(uint32_t));