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

Unified Diff: src/heap.cc

Issue 11636016: Fix windows compile warnings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 8f96f4bf8937c2697aad58514d2602c76418c6b5..95fea73a7a9d85fdd86eaaeb473a77838e8d346e 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -3319,8 +3319,8 @@ MUST_USE_RESULT static inline MaybeObject* MakeOrFindTwoCharacterString(
if (!maybe_result->ToObject(&result)) return maybe_result;
}
char* dest = SeqOneByteString::cast(result)->GetChars();
- dest[0] = c1;
- dest[1] = c2;
+ dest[0] = static_cast<char>(c1);
+ dest[1] = static_cast<char>(c2);
return result;
} else {
Object* result;
« 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