- 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
int nth_tap;
int bypass_devices = 0;
int field_count = 0;
- int scan_size;
jtag_tap_t *tap;
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;