Skip to content

Commit

Permalink
third_party/protobuf: Reduce the required alignment of ArenaString fr…
Browse files Browse the repository at this point in the history
  • Loading branch information
klzgrad committed Oct 16, 2023
1 parent 9b24874 commit 08bd201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/third_party/protobuf/src/google/protobuf/arenastring.cc
Expand Up @@ -64,8 +64,8 @@ constexpr size_t kNewAlign = alignof(std::max_align_t);
#endif
constexpr size_t kStringAlign = alignof(std::string);

static_assert((kStringAlign > kNewAlign ? kStringAlign : kNewAlign) >= 8, "");
static_assert(alignof(ExplicitlyConstructedArenaString) >= 8, "");
static_assert((kStringAlign > kNewAlign ? kStringAlign : kNewAlign) >= 4, "");
static_assert(alignof(ExplicitlyConstructedArenaString) >= 4, "");

} // namespace

Expand Down

0 comments on commit 08bd201

Please sign in to comment.