Skip to content

Commit 0a26a54

Browse files
authored
Make Noop process type stable (#174)
1 parent 17636eb commit 0a26a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/noop.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ initial_output_size(codec::Noop, input::Memory) = length(input)
132132

133133
function process(codec::Noop, input::Memory, output::Memory, error::Error)
134134
iszero(length(input)) && return (0, 0, :end)
135-
n = min(length(input), length(output))
135+
n::Int = min(length(input), length(output))
136136
unsafe_copyto!(output.ptr, input.ptr, n)
137137
(n, n, :ok)
138138
end

0 commit comments

Comments
 (0)