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

Unified Diff: src/runtime.cc

Issue 1074003: Fix windows build. (Closed)
Patch Set: Created 10 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/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 559bcd385765e2c5e37a1db8a82e11e7d7be03d5..1ad5004532127b8b3e795d6fd68182ad397ba9ea 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -2354,7 +2354,7 @@ static inline int SingleCharIndexOf(Vector<const schar> string,
schar pattern_char,
int start_index) {
if (sizeof(schar) == 1) {
- schar* pos = reinterpret_cast<schar*>(
+ const schar* pos = reinterpret_cast<const schar*>(
memchr(string.start() + start_index,
pattern_char,
string.length() - start_index));
@@ -2409,9 +2409,10 @@ static int SimpleIndexOf(Vector<const schar> subject,
return i;
}
if (sizeof(schar) == 1 && sizeof(pchar) == 1) {
- schar* pos = reinterpret_cast<schar*>(memchr(subject.start() + i,
- pattern_first_char,
- n - i + 1));
+ const schar* pos = reinterpret_cast<const schar*>(
+ memchr(subject.start() + i,
+ pattern_first_char,
+ n - i + 1));
if (pos == NULL) {
*complete = true;
return -1;
« 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