Revision: 21844
Author: [email protected]
Date: Fri Jun 13 14:24:56 2014 UTC
Log: Fix windows build (size_t vs. int).
Sadly, Vector ctor takes an argument "int length".
[email protected], [email protected]
BUG=
Review URL: https://codereview.chromium.org/334903002
http://code.google.com/p/v8/source/detail?r=21844
Modified:
/branches/bleeding_edge/src/ast-value-factory.h
=======================================
--- /branches/bleeding_edge/src/ast-value-factory.h Fri Jun 13 13:31:56
2014 UTC
+++ /branches/bleeding_edge/src/ast-value-factory.h Fri Jun 13 14:24:56
2014 UTC
@@ -233,11 +233,11 @@
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
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.