From: Jay Freeman (saurik) Date: Mon, 19 Oct 2009 01:54:58 +0000 (+0000) Subject: Fixed a namespace scoping serialization bug (cyt instead of cyv) in array comprehensions. X-Git-Tag: v0.9.432~317 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/dc81e1c20b268c419fa88f8dd17fb92191a7ce1b Fixed a namespace scoping serialization bug (cyt instead of cyv) in array comprehensions. --- 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 << "}())"; }