jtag: fix unsigned vs signed

This commit is contained in:
Gwenhael Goavec-Merou 2021-06-26 08:47:37 +02:00
parent 98a2e836fa
commit c1f18cd1d3
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ int Jtag::shiftIR(unsigned char *tdi, unsigned char *tdo, int irlen, int end_sta
* before targeted and irlength of each one
*/
int bypass_before = 0;
for (int i = device_index + 1; i < _devices_list.size(); i++)
for (unsigned int i = device_index + 1; i < _devices_list.size(); i++)
bypass_before += _irlength_list[i];
/* same for device after targeted device
*/