Skip to content

Commit 0fb31af

Browse files
committed
fixed compilation failure due to signed/unsigned comparison warning
the warning is caused by b3d4c97 in upstream OpenOCD
1 parent 9740a4d commit 0fb31af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jtag/drivers/jtag_vpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static int jtag_vpi_stableclocks(unsigned int num_cycles)
461461
unsigned int cycles_remain = num_cycles;
462462
int nb_bits;
463463
int retval;
464-
const int CYCLES_ONE_BATCH = sizeof(tms_bits) * 8;
464+
const unsigned int CYCLES_ONE_BATCH = sizeof(tms_bits) * 8;
465465

466466
/* use TMS=1 in TAP RESET state, TMS=0 in all other stable states */
467467
memset(&tms_bits, (tap_get_state() == TAP_RESET) ? 0xff : 0x00, sizeof(tms_bits));

0 commit comments

Comments
 (0)