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

Unified Diff: src/ast-value-factory.cc

Issue 336803002: Fix windows build (size_t vs. int) some more. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/ast-value-factory.cc
diff --git a/src/ast-value-factory.cc b/src/ast-value-factory.cc
index a430dcd308a047ae816b7a8290dfe5ef9253308b..bdc80d14dfb278a98eb7ebf986c77beab6ae7f52 100644
--- a/src/ast-value-factory.cc
+++ b/src/ast-value-factory.cc
@@ -77,7 +77,7 @@ bool AstString::AsArrayIndex(uint32_t* index) const {
bool AstString::IsOneByteEqualTo(const char* data) const {
- int length = strlen(data);
+ int length = static_cast<int>(strlen(data));
if (is_one_byte_ && literal_bytes_.length() == length) {
const char* token = reinterpret_cast<const char*>(literal_bytes_.start());
return !strncmp(token, data, length);
« 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