From: keuchel@chromium.org Date: Mon, 31 Oct 2011 15:04:27 +0000 (+0000) Subject: Fix unwanted implicit conversion from bool to int. X-Git-Tag: upstream/4.7.83~18031 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b533c315a83de2dff5a385f1fa4b5ad03dabd64;p=platform%2Fupstream%2Fv8.git Fix unwanted implicit conversion from bool to int. We have the following signatures: VariableProxy* Scope::NewUnresolved(Handle name, int position = RelocInfo::kNoPosition); bool Parser::inside_with() const; Review URL: http://codereview.chromium.org/8427001 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9850 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/parser.cc b/src/parser.cc index 0d810e41a..52ba66a45 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -2460,7 +2460,7 @@ Statement* Parser::ParseForStatement(ZoneStringList* labels, bool* ok) { // implementing stack allocated block scoped variables. Variable* temp = top_scope_->DeclarationScope()->NewTemporary(name); VariableProxy* temp_proxy = new(zone()) VariableProxy(isolate(), temp); - VariableProxy* each = top_scope_->NewUnresolved(name, inside_with()); + VariableProxy* each = top_scope_->NewUnresolved(name); ForInStatement* loop = new(zone()) ForInStatement(isolate(), labels); Target target(&this->target_stack_, loop);