• Robert Edmonds's avatar
    protoc-c: c_message: Order oneof union members from largest to smallest · 36485387
    Robert Edmonds authored
    This commit changes the code generator to output the members of a oneof
    union from largest to smallest, rather than in field descriptor order.
    
    This is necessary on certain compilers such as gcc >= 15 which do not
    guarantee that initializing a union with the universal zero initializer
    actually initializes all the bits of the object representation of the
    members of the union, unless the largest union member is the first
    member of the union.
    36485387
c_message.h 5.58 KB