From: Jay Freeman (saurik) Date: Wed, 21 Oct 2009 08:28:19 +0000 (+0000) Subject: Fixed a stupid strcmp() == mistake that broke CYNoIn. X-Git-Tag: v0.9.432~294 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/d09e527c381abbc21b5ad603c3b55fe07c35d505?ds=inline Fixed a stupid strcmp() == mistake that broke CYNoIn. --- diff --git a/Output.cpp b/Output.cpp index 7f77d65..1e4d437 100644 --- a/Output.cpp +++ b/Output.cpp @@ -549,7 +549,7 @@ void CYIndirectMember::Output(CYOutput &out, CYFlags flags) const { void CYInfix::Output(CYOutput &out, CYFlags flags) const { const char *name(Operator()); - bool protect((flags & CYNoIn) != 0 && strcmp(name, "in")); + bool protect((flags & CYNoIn) != 0 && strcmp(name, "in") == 0); if (protect) out << '('; CYFlags left(protect ? CYNoFlags : CYLeft(flags));