We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03137df commit 08069e4Copy full SHA for 08069e4
ir/expression.cpp
@@ -94,6 +94,7 @@ void IR::Constant::handleOverflow(bool noWarning) {
94
P4::warning(ErrorType::WARN_OVERFLOW,
95
"%1%: zero-width integer cannot have non-zero value", this);
96
}
97
+ value = 0;
98
} else if (tb->isSigned) {
99
big_int max = (one << (width - 1)) - 1;
100
big_int min = -(one << (width - 1));
0 commit comments