Skip to content

Commit

Permalink
char to int casts for getindex, runtests.jl passes
Browse files Browse the repository at this point in the history
  • Loading branch information
timbitz committed Jun 5, 2017
1 parent e7ba249 commit 5526d9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function sufcheck(T,SA)
if 0 < p
p -= 1
c = T[p+1]
t = C[c+1]
t = C[Int(c)+1]
else
p = n-1
c = T[p+1]
Expand All @@ -59,9 +59,9 @@ function sufcheck(T,SA)
return -4
end
if t != q
C[c+1] += 1
if n <= C[c+1] || T[SA[C[c+1]+1]+1] != c
C[c+1] = -1
C[Int(c)+1] += 1
if n <= C[Int(c)+1] || T[SA[C[Int(c)+1]+1]+1] != c
C[Int(c)+1] = -1
end
end
end
Expand Down

0 comments on commit 5526d9f

Please sign in to comment.