diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2007-04-02 06:47:48 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2007-04-02 06:47:48 +0000 |
| commit | b1b46280cb820e68b4173e96b3140b38a407474b (patch) | |
| tree | ae47092520347c6631637c7376746d86240fc61e | |
| parent | ff7499570c7d34540883feb6348648b1461cf146 (diff) | |
Notes
| -rw-r--r-- | usr.bin/sed/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c index ee9334c24512..c609908bca90 100644 --- a/usr.bin/sed/process.c +++ b/usr.bin/sed/process.c @@ -264,9 +264,9 @@ new: if (!nflag && !pd) * TRUE if the address passed matches the current program state * (lastline, linenumber, ps). */ -#define MATCH(a) \ - (a)->type == AT_RE ? regexec_e((a)->u.r, ps, 0, 1, psl) : \ - (a)->type == AT_LINE ? linenum == (a)->u.l : lastline() +#define MATCH(a) \ + ((a)->type == AT_RE ? regexec_e((a)->u.r, ps, 0, 1, psl) : \ + (a)->type == AT_LINE ? linenum == (a)->u.l : lastline()) /* * Return TRUE if the command applies to the current line. Sets the inrange |
