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

Unified Diff: src/runtime.cc

Issue 1539033: Fix build problems on Windows 64-bit by casting. (Closed)
Patch Set: Created 10 years, 8 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 | « src/profile-generator.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 7de610da185b49f681e790642644f7e728ce80b3..333d0a0334c363c4434de0f8a1d3bd0253270637 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -2542,7 +2542,7 @@ static inline int SingleCharIndexOf(Vector<const schar> string,
pattern_char,
string.length() - start_index));
if (pos == NULL) return -1;
- return pos - string.start();
+ return static_cast<int>(pos - string.start());
}
for (int i = start_index, n = string.length(); i < n; i++) {
if (pattern_char == string[i]) {
@@ -2600,7 +2600,7 @@ static int SimpleIndexOf(Vector<const schar> subject,
*complete = true;
return -1;
}
- i = pos - subject.start();
+ i = static_cast<int>(pos - subject.start());
} else {
if (subject[i] != pattern_first_char) continue;
}
@@ -2634,7 +2634,7 @@ static int SimpleIndexOf(Vector<const schar> subject,
pattern_first_char,
n - i + 1));
if (pos == NULL) return -1;
- i = pos - subject.start();
+ i = static_cast<int>(pos - subject.start());
} else {
if (subject[i] != pattern_first_char) continue;
}
@@ -6366,7 +6366,7 @@ static const char kMonthInYear[] = {
static inline void DateYMDFromTimeAfter1970(int date,
int& year, int& month, int& day) {
#ifdef DEBUG
- int save_date = date; // Need this for ASSERT in the end.
+ int save_date = date; // Need this for ASSERT in the end.
#endif
year = 1970 + (4 * date + 2) / kDaysIn4Years;
@@ -6382,7 +6382,7 @@ static inline void DateYMDFromTimeAfter1970(int date,
static inline void DateYMDFromTimeSlow(int date,
int& year, int& month, int& day) {
#ifdef DEBUG
- int save_date = date; // Need this for ASSERT in the end.
+ int save_date = date; // Need this for ASSErRT in the end.
Søren Thygesen Gjesse 2010/04/13 11:35:37 ???
Lasse Reichstein 2010/04/13 11:52:44 Fixed.
#endif
date += kDaysOffset;
@@ -9779,7 +9779,8 @@ static Object* Runtime_GetFunctionCodePositionFromSource(Arguments args) {
// Check if this break point is closer that what was previously found.
if (source_position <= statement_position &&
statement_position - source_position < distance) {
- closest_pc = it.rinfo()->pc() - code->instruction_start();
+ closest_pc =
+ static_cast<int>(it.rinfo()->pc() - code->instruction_start());
distance = statement_position - source_position;
// Check whether we can't get any closer.
if (distance == 0) break;
« no previous file with comments | « src/profile-generator.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698