|
From: kc8apf at B. <kc...@ma...> - 2009-05-20 06:51:13
|
Author: kc8apf
Date: 2009-05-20 06:51:08 +0200 (Wed, 20 May 2009)
New Revision: 1843
Modified:
trunk/src/jtag/jtag.c
Log:
Author: Michael Bruck <mb...@di...>
- move scan_size in interface_jtag_add_ir_scan() into the scope of the inner loop and change it to unsigned
Modified: trunk/src/jtag/jtag.c
===================================================================
--- trunk/src/jtag/jtag.c 2009-05-20 04:49:53 UTC (rev 1842)
+++ trunk/src/jtag/jtag.c 2009-05-20 04:51:08 UTC (rev 1843)
@@ -600,7 +600,6 @@
{
jtag_tap_t *tap;
int nth_tap;
- int scan_size = 0;
int num_taps = jtag_NumEnabledTaps();
@@ -631,7 +630,7 @@
assert(nth_tap < num_taps);
- scan_size = tap->ir_length;
+ size_t scan_size = tap->ir_length;
scan->fields[nth_tap].tap = tap;
scan->fields[nth_tap].num_bits = scan_size;
scan->fields[nth_tap].in_value = NULL; /* do not collect input for tap's in bypass */
|