summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jtag/tcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c
index 8a7e38c3..0457bc70 100644
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -416,7 +416,7 @@ static int jim_newtap_cmd( Jim_GetOptInfo *goi )
}
switch(n->value){
case NTAP_OPT_IRLEN:
- if (w < (jim_wide) sizeof(pTap->ir_capture_value))
+ if (w > (jim_wide) (8 * sizeof(pTap->ir_capture_value)))
LOG_WARNING("huge IR length %d", (int) w);
pTap->ir_length = w;
reqbits &= (~(NTREQ_IRLEN));