From 0fb31af501a8a29b097cce1d16491afe1e40066a Mon Sep 17 00:00:00 2001 From: Parshintsev Anatoly Date: Tue, 20 Aug 2024 15:52:56 +0300 Subject: [PATCH] fixed compilation failure due to signed/unsigned comparison warning the warning is caused by b3d4c97b in upstream OpenOCD --- src/jtag/drivers/jtag_vpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/drivers/jtag_vpi.c b/src/jtag/drivers/jtag_vpi.c index 5745a2cd0..a19060c2a 100644 --- a/src/jtag/drivers/jtag_vpi.c +++ b/src/jtag/drivers/jtag_vpi.c @@ -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));