diff options
author | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-20 04:53:00 +0000 |
---|---|---|
committer | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-20 04:53:00 +0000 |
commit | 645bde6e57697dda2bb35c9441af09bcb3e29513 (patch) | |
tree | 1153607620e7b9612dca8d3d4ea91aeed3404824 | |
parent | fe54d5f5e61da27fc5d8e204d76a25d6f73de9a5 (diff) | |
download | openocd_libswd-645bde6e57697dda2bb35c9441af09bcb3e29513.tar.gz openocd_libswd-645bde6e57697dda2bb35c9441af09bcb3e29513.tar.bz2 openocd_libswd-645bde6e57697dda2bb35c9441af09bcb3e29513.tar.xz openocd_libswd-645bde6e57697dda2bb35c9441af09bcb3e29513.zip |
Author: Michael Bruck <mbruck@digenius.de>
- move scan_size in interface_jtag_add_dr_scan() into the scope of the inner loop and change it to unsigned
git-svn-id: svn://svn.berlios.de/openocd/trunk@1846 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/jtag/jtag.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index 066031db..3da409c4 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -791,7 +791,6 @@ int MINIDRIVER(interface_jtag_add_dr_scan)(int in_num_fields, scan_field_t *in_f int nth_tap; int bypass_devices = 0; int field_count = 0; - int scan_size; jtag_tap_t *tap; @@ -837,7 +836,7 @@ int MINIDRIVER(interface_jtag_add_dr_scan)(int in_num_fields, scan_field_t *in_f if (tap == in_fields[j].tap) { found = 1; - scan_size = in_fields[j].num_bits; + size_t scan_size = in_fields[j].num_bits; scan->fields[field_count].num_bits = scan_size; scan->fields[field_count].out_value = buf_cpy(in_fields[j].out_value, cmd_queue_alloc(CEIL(scan_size, 8)), scan_size); scan->fields[field_count].in_value = in_fields[j].in_value; |