Commit dd3de80
authored
Fix float block index causing hang due to infinite recursion (#492)
Calling `BlockIndex((1.0, 2.0), (1,2))` currently causes an infinite
growth of the tuple `b`, which this PR fixes by requiring tuple `a` to
have integer elements. This lead to the computer just working for a very
long time (at least 10 minutes) without any error message.1 parent a1f2273 commit dd3de80
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
0 commit comments