summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-20 04:51:08 +0000
committerkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-20 04:51:08 +0000
commitc1b397e48c03c9459d8251cdf83d82f41a7b0cd9 (patch)
tree8e0e5a5bfdb99f9220857855e70495ed3a5243dd
parent8632901e7d87789db6b3709cd32a4bfc59d523f4 (diff)
downloadopenocd_libswd-c1b397e48c03c9459d8251cdf83d82f41a7b0cd9.tar.gz
openocd_libswd-c1b397e48c03c9459d8251cdf83d82f41a7b0cd9.tar.bz2
openocd_libswd-c1b397e48c03c9459d8251cdf83d82f41a7b0cd9.tar.xz
openocd_libswd-c1b397e48c03c9459d8251cdf83d82f41a7b0cd9.zip
Author: Michael Bruck <mbruck@digenius.de>
- move scan_size in interface_jtag_add_ir_scan() into the scope of the inner loop and change it to unsigned git-svn-id: svn://svn.berlios.de/openocd/trunk@1843 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/jtag/jtag.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index 1b503ece..a974cad8 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -600,7 +600,6 @@ int MINIDRIVER(interface_jtag_add_ir_scan)(int in_num_fields, scan_field_t *in_f
{
jtag_tap_t *tap;
int nth_tap;
- int scan_size = 0;
int num_taps = jtag_NumEnabledTaps();
@@ -631,7 +630,7 @@ int MINIDRIVER(interface_jtag_add_ir_scan)(int in_num_fields, scan_field_t *in_f
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 */