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

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

Issue 334903002: Fix windows build (size_t vs. int). (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.h
diff --git a/src/ast-value-factory.h b/src/ast-value-factory.h
index 8b3a7c3f18be8a69bdae63aebf44329b7c55d001..59efa58c51012a05552b0ab829997aad268cf661 100644
--- a/src/ast-value-factory.h
+++ b/src/ast-value-factory.h
@@ -233,11 +233,11 @@ class AstValueFactory {
string_table_(AstString::Compare),
zone_(zone),
isolate_(NULL) {
-#define F(name, str) { \
- const char* data = str; \
- name##_string_ = GetOneByteString( \
+#define F(name, str) { \
+ const char* data = str; \
+ name##_string_ = GetOneByteString( \
Vector<const uint8_t>(reinterpret_cast<const uint8_t*>(data), \
- strlen(data))); \
+ static_cast<int>(strlen(data)))); \
}
STRING_CONSTANTS(F)
#undef F
« 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