Skip to content

Commit

Permalink
Merge pull request #6 from JuliaArrays/fbot/deps
Browse files Browse the repository at this point in the history
Fix deprecations
  • Loading branch information
timholy committed Sep 14, 2017
2 parents 4c980d6 + b026305 commit f2ad24a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/bidirectional.jl
@@ -1,16 +1,16 @@
using CustomUnitRanges
include(CustomUnitRanges.filename_for_urange) # defines URange

type BidirectionalVector{T} <: AbstractVector{T}
mutable struct BidirectionalVector{T} <: AbstractVector{T}
data::Vector{T}
offset::Int
end
BidirectionalVector{T}(v::AbstractVector{T}, inds::AbstractUnitRange) =
BidirectionalVector(v::AbstractVector{T}, inds::AbstractUnitRange) where {T} =
BidirectionalVector(copyelts(v), first(inds)-1)
BidirectionalVector(v::AbstractVector) = BidirectionalVector(v, Base.indices1(v))

# copies but doesn't preserve the indices
function copyelts{T}(v::AbstractVector{T})
function copyelts(v::AbstractVector{T}) where T
inds = Base.indices1(v)
n = length(inds)
dest = Array{T}(n)
Expand Down
2 changes: 1 addition & 1 deletion src/cat.jl
@@ -1,4 +1,4 @@
immutable PinIndices{T}
struct PinIndices{T}
x::T
end
is_pinned(x) = false
Expand Down

0 comments on commit f2ad24a

Please sign in to comment.