We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60da70 commit 612eaa7Copy full SHA for 612eaa7
src/CircularArrayBuffers.jl
@@ -92,7 +92,7 @@ end
92
93
Return the index of the `idx`-th element in the buffer, if index is one past the size, return 1, else error.
94
"""
95
-function wrap_index(idx, n)
+function wrap_index(idx::Int, n::Int)
96
if idx <= n
97
return idx
98
elseif idx <= 2n
0 commit comments