Skip to content

Commit 240c273

Browse files
committed
add type annotation in rowcolranges
1 parent e575b5f commit 240c273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blockmap.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ map in `maps`, according to its position in a virtual matrix representation of t
3232
block linear map obtained from `hvcat(rows, maps...)`.
3333
"""
3434
function rowcolranges(maps, rows)
35-
rowranges = ntuple(n->1:0, Val(length(rows)))
36-
colranges = ntuple(n->1:0, Val(length(maps)))
35+
rowranges::NTuple{length(rows),UnitRange{Int}} = ntuple(n->1:0, Val(length(rows)))
36+
colranges::NTuple{length(maps),UnitRange{Int}} = ntuple(n->1:0, Val(length(maps)))
3737
mapind = 0
3838
rowstart = 1
3939
for (i, row) in enumerate(rows)

0 commit comments

Comments
 (0)