mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:12:08 +00:00
Fix compiler warning with shift of negative value.
It seems newer versions of gcc complain about undefined behavior. Fixes #28923. R=rmacnak@google.com Review-Url: https://codereview.chromium.org/2723233002 .
This commit is contained in:
parent
cc7c61124b
commit
67c42c7d10
|
@ -2348,7 +2348,7 @@ void Range::BitwiseOp(const Range* left_range,
|
|||
*result_min = RangeBoundary::FromConstant(0);
|
||||
} else {
|
||||
*result_min =
|
||||
RangeBoundary::FromConstant(static_cast<int64_t>(-1) << bitsize);
|
||||
RangeBoundary::FromConstant(-(static_cast<int64_t>(1) << bitsize));
|
||||
}
|
||||
|
||||
*result_max =
|
||||
|
|
Loading…
Reference in a new issue