Check range of immediate value.
This commit is contained in:
parent
6f0d98cf18
commit
a8f492776a
|
|
@ -92,6 +92,7 @@ unsigned long get_number_immediate(ivl_expr_t ex)
|
||||||
case '0':
|
case '0':
|
||||||
break;
|
break;
|
||||||
case '1':
|
case '1':
|
||||||
|
assert(idx < 8*sizeof(imm));
|
||||||
imm |= 1UL << idx;
|
imm |= 1UL << idx;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue