Skip to content

Commit 72b5eb4

Browse files
fix: add check for n == 0
1 parent 07e3f4b commit 72b5eb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/edt.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ void squared_edt_1d_multi_seg(
7171
const bool black_border=false
7272
) {
7373

74+
if (n == 0) {
75+
return;
76+
}
77+
7478
int64_t i;
7579

7680
T working_segid = segids[0];

0 commit comments

Comments
 (0)