Skip to content

Commit

Permalink
fix errors caught in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
longemen3000 authored Feb 27, 2024
1 parent 0580f9e commit 69c8453
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ consumeBOM(buf, pos) = (length(buf) >= 3 && buf[pos] == 0xef && buf[pos + 1] ==
x = x.data
return parent(x), first(x.indices), last(x.indices), tfile
else #support from IOBuffer containing Memory
_x = take!(x)
return _x, 1, length(_x), tfile
return take!(x), x.ptr, x.size, tfile

Check warning on line 264 in src/utils.jl

View check run for this annotation

Codecov / codecov/patch

src/utils.jl#L264

Added line #L264 was not covered by tests
end
elseif x isa Cmd || x isa IO
if buffer_in_memory
Expand Down

0 comments on commit 69c8453

Please sign in to comment.