From dc81e1c20b268c419fa88f8dd17fb92191a7ce1b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 19 Oct 2009 01:54:58 +0000 Subject: [PATCH] Fixed a namespace scoping serialization bug (cyt instead of cyv) in array comprehensions. --- Output.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Output.cpp b/Output.cpp index 1d4a510..100e25a 100644 --- a/Output.cpp +++ b/Output.cpp @@ -80,14 +80,14 @@ void CYArrayComprehension::Output(std::ostream &out, CYFlags flags) const { if (const char *name = comprehension->Name()) out << ',' << name; out << "){"; - out << "$cyt=[];"; + out << "$cyv=[];"; comprehensions_->Output(out); - out << "$cyt.push("; + out << "$cyv.push("; expression_->Output(out, CYPA, CYNoFlags); out << ");"; for (CYComprehension *comprehension(comprehensions_); comprehension != NULL; comprehension = comprehension->next_) comprehension->End_(out); - out << "return $cyt;"; + out << "return $cyv;"; out << "}())"; } -- 2.45.2