Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: runtime/vm/flow_graph_range_analysis.cc

Issue 2723233002: Fix compiler warning with shift of negative value. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_range_analysis.cc
diff --git a/runtime/vm/flow_graph_range_analysis.cc b/runtime/vm/flow_graph_range_analysis.cc
index b19b4e63a1778120cd22b7790cfef65e8d6ba73d..d680ea672f6470bb6e867246eacc831986d737ae 100644
--- a/runtime/vm/flow_graph_range_analysis.cc
+++ b/runtime/vm/flow_graph_range_analysis.cc
@@ -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 =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698