On Mon, May 3, 2021, 19:45 James Murray <ja...@nscc.info> wrote: > On Mon, 2021-05-03 at 13:07 +0000, openocd-devel- > requ...@lists.sourceforge.net wrote: > > commit ba597976279422fdab7928f763d7c78027340075 > > Author: Antonio Borneo <borneo.anto...@gmail.com> > > 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? >
Oops. Mistake in the commit message. It was supposed to be: Prefer 'unsigned int' to 'unsigned'. The text in the file is correct, but the commit message not. I will fix it. Thanks for spotting it. The rationale for this is only to uniform the style across files. I have counted the two forms and they are used both with ~50% occurrence. From C language point of view they are 100% equivalent. 'unsigned int' is easier to handle in scripts for automatically generated patches. Antonio