Macro stepper: fixed internal error

svn: r5583
This commit is contained in:
Ryan Culpepper 2007-02-09 18:21:10 +00:00
parent 2c2d1f904a
commit 94ee28f1d5

View File

@ -245,7 +245,8 @@
(let ([ctx (lambda (x) (path-replace term path0 x))])
(append (with-context ctx
(reductions deriv0))
(loop (path-replace term path0 (deriv-e2 deriv0))
(loop (and (deriv? deriv0)
(path-replace term path0 (deriv-e2 deriv0)))
(cdr subterms)))))]
[(s:rename? (car subterms))
(let* ([subterm0 (car subterms)])