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 | |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | regex.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2010-01-15 Kaz Kylheku <kkylheku@gmail.com> + * regex.c (reg_derivative_list): Bugfix: wrong algebra, + taking a double derivative of the first item. + +2010-01-15 Kaz Kylheku <kkylheku@gmail.com> + * txr.1: Fix accidental edit garbage. 2010-01-14 Kaz Kylheku <kkylheku@gmail.com> @@ -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); |