diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2010-01-15 14:05:43 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2010-01-15 14:05:43 -0800 |
commit | 5eab77fcd428e89303521df2830cdc0951672348 (patch) | |
tree | a4665d8255bfc823ecd27753caf516c5b2b8e27e /regex.c | |
parent | 50e076ed6d30c602eef8c25f260bd7484ee4bd0d (diff) | |
download | txr-5eab77fcd428e89303521df2830cdc0951672348.tar.gz txr-5eab77fcd428e89303521df2830cdc0951672348.tar.bz2 txr-5eab77fcd428e89303521df2830cdc0951672348.zip |
* regex.c (reg_derivative_list): Bugfix: wrong algebra,
taking a double derivative of the first item.
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1232,7 +1232,7 @@ static val reg_derivative_list(val exp_list, val ch) return cons(compound_s, rest(exp_list)); else return cons(compound_s, - cons(reg_derivative(d_first, ch), rest(exp_list))); + cons(d_first, rest(exp_list))); } } else { return reg_derivative(first(exp_list), ch); |