Skip to content

Commit

Permalink
Auto-generate files after cl/699254841
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed Nov 22, 2024
1 parent d76359a commit aded9b7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions php/ext/google/protobuf/php-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ Error, UINTPTR_MAX is undefined
// overall - in that case, it can overlap with the trailing padding of the rest
// of the struct, and a naive sizeof(base) + sizeof(flex) * count calculation
// will not take into account that overlap, and allocate more than is required.
#define UPB_SIZEOF_FLEX(type, member, count) \
(UPB_MAX(sizeof(type), \
(offsetof(type, member) + \
count * (offsetof(type, member[1]) - offsetof(type, member[0])))))
#define UPB_SIZEOF_FLEX(type, member, count) \
(UPB_MAX(sizeof(type), \
(offsetof(type, member) + (count) * (offsetof(type, member[1]) - \
offsetof(type, member[0])))))

#define UPB_MAPTYPE_STRING 0

Expand Down
8 changes: 4 additions & 4 deletions php/ext/google/protobuf/php-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ Error, UINTPTR_MAX is undefined
// overall - in that case, it can overlap with the trailing padding of the rest
// of the struct, and a naive sizeof(base) + sizeof(flex) * count calculation
// will not take into account that overlap, and allocate more than is required.
#define UPB_SIZEOF_FLEX(type, member, count) \
(UPB_MAX(sizeof(type), \
(offsetof(type, member) + \
count * (offsetof(type, member[1]) - offsetof(type, member[0])))))
#define UPB_SIZEOF_FLEX(type, member, count) \
(UPB_MAX(sizeof(type), \
(offsetof(type, member) + (count) * (offsetof(type, member[1]) - \
offsetof(type, member[0])))))

#define UPB_MAPTYPE_STRING 0

Expand Down
8 changes: 4 additions & 4 deletions ruby/ext/google/protobuf_c/ruby-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ Error, UINTPTR_MAX is undefined
// overall - in that case, it can overlap with the trailing padding of the rest
// of the struct, and a naive sizeof(base) + sizeof(flex) * count calculation
// will not take into account that overlap, and allocate more than is required.
#define UPB_SIZEOF_FLEX(type, member, count) \
(UPB_MAX(sizeof(type), \
(offsetof(type, member) + \
count * (offsetof(type, member[1]) - offsetof(type, member[0])))))
#define UPB_SIZEOF_FLEX(type, member, count) \
(UPB_MAX(sizeof(type), \
(offsetof(type, member) + (count) * (offsetof(type, member[1]) - \
offsetof(type, member[0])))))

#define UPB_MAPTYPE_STRING 0

Expand Down
8 changes: 4 additions & 4 deletions ruby/ext/google/protobuf_c/ruby-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ Error, UINTPTR_MAX is undefined
// overall - in that case, it can overlap with the trailing padding of the rest
// of the struct, and a naive sizeof(base) + sizeof(flex) * count calculation
// will not take into account that overlap, and allocate more than is required.
#define UPB_SIZEOF_FLEX(type, member, count) \
(UPB_MAX(sizeof(type), \
(offsetof(type, member) + \
count * (offsetof(type, member[1]) - offsetof(type, member[0])))))
#define UPB_SIZEOF_FLEX(type, member, count) \
(UPB_MAX(sizeof(type), \
(offsetof(type, member) + (count) * (offsetof(type, member[1]) - \
offsetof(type, member[0])))))

#define UPB_MAPTYPE_STRING 0

Expand Down

0 comments on commit aded9b7

Please sign in to comment.