[openssl-project] Style guide updates
kurt at roeckx.be
Sat Jan 27 12:08:29 UTC 2018
On Sat, Jan 27, 2018 at 01:03:04PM +0100, Kurt Roeckx wrote:
> It's just that there seem to be 2 camps, one saying that all types
> should be signed except when it's to access the bits. The other
> that a size can't be negative so you go for an unsigned type. If
> it's a signed type you could check that they gave you a negative
> value by accident and return an error.
The other argument to go with a signed type it's that it's easier
to write a reverse for loop and not end up with an infite loop.
More information about the openssl-project