sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.17k stars 214 forks source link

Check for most significant bit in the C-standard way #264

Closed AreaZR closed 1 year ago

AreaZR commented 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.

millert commented 1 year ago

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.