On Mon, 2021-05-03 at 13:07 +0000, openocd-devel- [email protected] wrote: > commit ba597976279422fdab7928f763d7c78027340075 > Author: Antonio Borneo <[email protected]> > Date: Sun May 2 23:03:33 2021 +0200 > > Prefer 'unsigned int' to 'int'. >
Maybe this has been covered before, but is there a good rationale for this? I have often found that I make more mistakes when using unsigned types for general variables. In my own work I have been preferring to use signed variables for safety unless I specifically need it to be unsigned such as addresses or bitfields. regards James
