]> git.saurik.com Git - cycript.git/commitdiff
Fixed a stupid strcmp() == mistake that broke CYNoIn.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 21 Oct 2009 08:28:19 +0000 (08:28 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 21 Oct 2009 08:28:19 +0000 (08:28 +0000)
Output.cpp

index 7f77d65c15aca0912dba84bef99d8ac5a2304d72..1e4d437045d77f3804fff807cfce8b1bd22be462 100644 (file)
@@ -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));