Check range of immediate value.

This commit is contained in:
Stephen Williams 2008-05-29 14:00:32 -07:00
parent 6f0d98cf18
commit a8f492776a
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ unsigned long get_number_immediate(ivl_expr_t ex)
case '0':
break;
case '1':
assert(idx < 8*sizeof(imm));
imm |= 1UL << idx;
break;
default: