- 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
{
jtag_tap_t *tap;
int nth_tap;
- int scan_size = 0;
int num_taps = jtag_NumEnabledTaps();
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 */