Skip to content

Commit

Permalink
update for Julia 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfeldt committed Dec 28, 2015
1 parent 25d11da commit 15d7748
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SuffixArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module SuffixArrays

export suffixsort

immutable SuffixArray{S<:String,N<:Signed}
immutable SuffixArray{S<:AbstractString,N<:Signed}
string::S
n::Int
index::Array{N,1}
Expand Down Expand Up @@ -30,7 +30,7 @@ end
#=contains(haystack, needle)
matchall(substring, s::String)=#
const MAXCHAR = char(255)
const MAXCHAR = Char(255)

function lcp2(SA,s)
inv = similar(SA)
Expand Down
1 change: 1 addition & 0 deletions src/sais.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type IntArray
a::Array{Int,1}
pos::Int
end
import Base: getindex, setindex!
getindex(a::IntArray,key) = a.a[a.pos + key]
setindex!(a::IntArray,value,key) = a.a[a.pos + key] = value

Expand Down

0 comments on commit 15d7748

Please sign in to comment.