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

Unified Diff: src/preparser.h

Issue 4971001: Fix Win64: strlen returns size_t which gets converted to int. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years, 1 month 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/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index 5565154cf99235977c2c0ff356af55b4ec740b44..547e7667526d984765e67c830bd692732b48674f 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -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) {
« 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