From 1691c537060cf2298dda3231b07cd4460da4c49e Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Thu, 5 Jun 2025 05:17:06 +0000 Subject: [PATCH] Fix logic to skip columns As written, this is a multi-comparison, rather than an integer addition of booleans. --- src/debug.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.jl b/src/debug.jl index 9daddd9..8e6100c 100644 --- a/src/debug.jl +++ b/src/debug.jl @@ -42,7 +42,7 @@ function Base.getindex(bgpm::SystemStructurePrintMatrix, i::Integer, j::Integer) checkbounds(bgpm, i, j) if bgpm.ssa_uses === nothing # Skip SSAUse-related columns. - j += j ≥ 5 + j ≥ 11 + j += (j ≥ 5) + (j ≥ 11) end if i <= 1 return (Label.(("# eq", "∂ₜ", " ", " ", "%", "", "# v", "∂ₜ", " ", " ", "%")))[j]