fixed compilation failure due to signed/unsigned comparison warning

the warning is caused by b3d4c97b in upstream OpenOCD
This commit is contained in:
Parshintsev Anatoly 2024-08-20 15:52:56 +03:00
parent 9740a4ddd6
commit 0fb31af501
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ static int jtag_vpi_stableclocks(unsigned int num_cycles)
unsigned int cycles_remain = num_cycles; unsigned int cycles_remain = num_cycles;
int nb_bits; int nb_bits;
int retval; int retval;
const int CYCLES_ONE_BATCH = sizeof(tms_bits) * 8; const unsigned int CYCLES_ONE_BATCH = sizeof(tms_bits) * 8;
/* use TMS=1 in TAP RESET state, TMS=0 in all other stable states */ /* use TMS=1 in TAP RESET state, TMS=0 in all other stable states */
memset(&tms_bits, (tap_get_state() == TAP_RESET) ? 0xff : 0x00, sizeof(tms_bits)); memset(&tms_bits, (tap_get_state() == TAP_RESET) ? 0xff : 0x00, sizeof(tms_bits));