]> git.wincent.com - wikitext.git/commitdiff
Remove unnecessary parens
authorWincent Colaiuta <win@wincent.com>
Tue, 12 May 2009 21:51:49 +0000 (23:51 +0200)
committerWincent Colaiuta <win@wincent.com>
Tue, 12 May 2009 21:51:49 +0000 (23:51 +0200)
Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c

index a95ae5c3704abcd96d6113aa6e0ac658b5729607..3ed852f00e5fcc93325e29b035eb7c123fa47083 100644 (file)
@@ -2327,12 +2327,12 @@ VALUE Wikitext_parser_parse(int argc, VALUE *argv, VALUE self)
                     int     token_len   = TOKEN_LEN(token);
                     NEXT_TOKEN();
                     type = token->type;
-                    if (((type == H6_END) && IN(H6_START)) ||
-                        ((type == H5_END) && IN(H5_START)) ||
-                        ((type == H4_END) && IN(H4_START)) ||
-                        ((type == H3_END) && IN(H3_START)) ||
-                        ((type == H2_END) && IN(H2_START)) ||
-                        ((type == H1_END) && IN(H1_START)))
+                    if ((type == H6_END && IN(H6_START)) ||
+                        (type == H5_END && IN(H5_START)) ||
+                        (type == H4_END && IN(H4_START)) ||
+                        (type == H3_END && IN(H3_START)) ||
+                        (type == H2_END && IN(H2_START)) ||
+                        (type == H1_END && IN(H1_START)))
                     {
                         // will suppress emission of space (discard) if next token is a H6_END, H5_END etc and we are in the corresponding scope
                     }