Commit 4a6f452e authored by antonm@chromium.org's avatar antonm@chromium.org

Fix Win64: strlen returns size_t which gets converted to int.

TBR=lrn@chromium.org

Review URL: http://codereview.chromium.org/4971001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5817 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2c472363
......@@ -29,6 +29,7 @@
#define V8_PREPARSER_H
#include "unicode.h"
#include "utils.h"
namespace v8 {
namespace preparser {
......@@ -1384,7 +1385,7 @@ Identifier PreParser<Scanner, Log>::ParseIdentifierName(bool* ok) {
if (i::Token::IsKeyword(next)) {
int pos = scanner_->location().beg_pos;
const char* keyword = i::Token::String(next);
log_->LogSymbol(pos, keyword, strlen(keyword));
log_->LogSymbol(pos, keyword, i::StrLength(keyword));
return kUnknownExpression;
}
if (next == i::Token::IDENTIFIER) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment