Commit0847a4d7fb("jtag/commands: Use 'unsigned int' data type") introduced bug when changing loop variable from `int` to `unsigned int`. Instead of getting negative and terminating the loop, the value wraps around to `INT_MAX` and the loop never finishes. Change-Id: I055025a1f8eb4abe50955607b3e89530dfd92af4 Signed-off-by: NikLeberg <niklaus.leuenb@gmail.com> Fixes:0847a4d7fb("jtag/commands: Use 'unsigned int' data type") Reviewed-on: https://review.openocd.org/c/openocd/+/9078 Reviewed-by: Evgeniy Naydanov <eugnay@gmail.com> Reviewed-by: zapb <dev@zapb.de> Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>