diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-06-06 08:19:05 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-06-06 08:19:54 +0300 |
commit | a0c096190fa57b12b9b95ada70f51cab402c74c7 (patch) | |
tree | 0735abe6b213601928ca9558b46a9abd1ba74a7a /src | |
parent | 806485a57fb37784e3e1789fce829a2bac390d99 (diff) | |
download | grecs-a0c096190fa57b12b9b95ada70f51cab402c74c7.tar.gz grecs-a0c096190fa57b12b9b95ada70f51cab402c74c7.tar.bz2 |
Fix previous commit
* src/tree.c (find_keyword): Fix precedence in the conditional.
Diffstat (limited to 'src')
-rw-r--r-- | src/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -309,9 +309,9 @@ find_keyword(struct grecs_keyword *cursect, grecs_node_t *node) | |||
309 | if (strcmp(kwp->ident, node->ident) == 0) { | 309 | if (strcmp(kwp->ident, node->ident) == 0) { |
310 | found = kwp; | 310 | found = kwp; |
311 | if (kwp->callback | 311 | if (kwp->callback |
312 | || node->down | 312 | || (node->down |
313 | ? kwp->type == grecs_type_section | 313 | ? kwp->type == grecs_type_section |
314 | : kwp->type != grecs_type_section) | 314 | : kwp->type != grecs_type_section)) |
315 | return kwp; | 315 | return kwp; |
316 | } | 316 | } |
317 | } | 317 | } |