Skip to content

Commit 3066c51

Browse files
committed
debug: correct nb construction for scalar Hc
1 parent d0036ed commit 3066c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/construct.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ The vector is filled with `1`s, except for the last element which is `Hp - Hc +
510510
function move_blocking(Hp_arg::Int, Hc_arg::Int)
511511
Hp, Hc = Hp_arg, Hc_arg
512512
nb = fill(1, Hc)
513-
if Hc > 1 # if Hc < 1, it will crash later with a clear error message
513+
if Hc > 0 # if Hc < 1, it will crash later with a clear error message
514514
nb[end] = Hp - Hc + 1
515515
end
516516
return nb

0 commit comments

Comments
 (0)