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

Unified Diff: src/assembler.cc

Issue 189093009: Windows build fix. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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: src/assembler.cc
diff --git a/src/assembler.cc b/src/assembler.cc
index 535b4befa4ce632cf99ebb0789e6497d7672832d..0117fc5734d43b7eac8229a3dcfccb86341f4d57 100644
--- a/src/assembler.cc
+++ b/src/assembler.cc
@@ -1622,7 +1622,8 @@ MultiplierAndShift::MultiplierAndShift(int32_t d) {
}
delta = ad - r2;
} while (q1 < delta || (q1 == delta && r1 == 0));
- multiplier_ = (d < 0) ? -(q2 + 1) : (q2 + 1);
+ int32_t mul = static_cast<int32_t>(q2 + 1);
+ multiplier_ = (d < 0) ? -mul : mul;
shift_ = p - 32;
}
« 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