diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-25 10:10:05 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-25 10:10:05 -0700 |
commit | 2707a8937c4b3f969e57f8ab599269feb693e903 (patch) | |
tree | ede57fa80dcd3dc5b9f56ef6cff33723e81ebb49 /regex.c | |
parent | 1b8e26d7e59d9b76ee88f9135470cb3f11d399cb (diff) | |
download | txr-2707a8937c4b3f969e57f8ab599269feb693e903.tar.gz txr-2707a8937c4b3f969e57f8ab599269feb693e903.tar.bz2 txr-2707a8937c4b3f969e57f8ab599269feb693e903.zip |
Bugfix in regex printing: & operator.
* regex.c (print_rec): Fix checking arg1
for consp but accessing arg2.
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2212,7 +2212,7 @@ static void print_rec(val exp, val stream, int *semi_flag) } else if (sym == and_s) { val arg1 = pop(&args); val arg2 = pop(&args); - if (consp(arg1) && car(arg2) == or_s) + if (consp(arg1) && car(arg1) == or_s) paren_print_rec(arg1, stream, semi_flag); else print_rec(arg1, stream, semi_flag); |