Closed AreaZR closed 1 year ago
Check if the values exceeds INT_MAX rather than be less than 0, when uint32_t to int32_t is implementation-defined.
This is code is from the protobuf-c project. I would like to avoid carrying local changes where possible. I suggest you submit a PR upstream.
Check if the values exceeds INT_MAX rather than be less than 0, when uint32_t to int32_t is implementation-defined.