Skip to content

Commit

Permalink
fixed compilation failure due to signed/unsigned comparison warning
Browse files Browse the repository at this point in the history
the warning is caused by b3d4c97 in upstream OpenOCD
  • Loading branch information
aap-sc committed Aug 20, 2024
1 parent 9740a4d commit 0fb31af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jtag/drivers/jtag_vpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ static int jtag_vpi_stableclocks(unsigned int num_cycles)
unsigned int cycles_remain = num_cycles;
int nb_bits;
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 */
memset(&tms_bits, (tap_get_state() == TAP_RESET) ? 0xff : 0x00, sizeof(tms_bits));
Expand Down

0 comments on commit 0fb31af

Please sign in to comment.