From 06bad4368d3314d62b99e719dd9fc74858d6589d Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Mon, 27 Aug 2018 18:36:49 -0500 Subject: [PATCH] Fix refine_locals in ConstantOneExpansionWrangler to start at level 1. (The previous version was functionally correct because the local expansion at the root is always zero.) --- boxtree/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxtree/tools.py b/boxtree/tools.py index 4d6fe43..03678ae 100644 --- a/boxtree/tools.py +++ b/boxtree/tools.py @@ -771,7 +771,7 @@ class ConstantOneExpansionWrangler(object): target_or_target_parent_boxes, local_exps): ops = 0 - for target_lev in range(self.tree.nlevels): + for target_lev in range(1, self.tree.nlevels): start, stop = level_start_target_or_target_parent_box_nrs[ target_lev:target_lev+2] for ibox in target_or_target_parent_boxes[start:stop]: -- GitLab