- Support parameters using struct as a wiretype
- Fixed regression preventing the use array querying functions in case
expressions and case item expressions
+ - Fixed static size casts inadvertently limiting the result width of binary
+ operations
* New commands and options
- Added "-genlib" option to "abc" pass
if (children.at(0)->type != AST_CONSTANT)
log_file_error(filename, location.first_line, "Static cast with non constant expression!\n");
children.at(1)->detectSignWidthWorker(width_hint, sign_hint);
- width_hint = children.at(0)->bitsAsConst().as_int();
+ this_width = children.at(0)->bitsAsConst().as_int();
+ width_hint = max(width_hint, this_width);
if (width_hint <= 0)
log_file_error(filename, location.first_line, "Static cast with zero or negative size!\n");
break;