mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
third_party/protobuf: Reduce the required alignment of ArenaString from 8 to 4
https://github.com/protocolbuffers/protobuf/pull/10298
This commit is contained in:
parent
39b4753c72
commit
f2c4bbe4b4
@ -64,8 +64,8 @@ constexpr size_t kNewAlign = alignof(std::max_align_t);
|
|||||||
#endif
|
#endif
|
||||||
constexpr size_t kStringAlign = alignof(std::string);
|
constexpr size_t kStringAlign = alignof(std::string);
|
||||||
|
|
||||||
static_assert((kStringAlign > kNewAlign ? kStringAlign : kNewAlign) >= 8, "");
|
static_assert((kStringAlign > kNewAlign ? kStringAlign : kNewAlign) >= 4, "");
|
||||||
static_assert(alignof(ExplicitlyConstructedArenaString) >= 8, "");
|
static_assert(alignof(ExplicitlyConstructedArenaString) >= 4, "");
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user