Skip to content

Commit

Permalink
Fix silly typo
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jul 24, 2016
1 parent 9054d86 commit a5cc636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/translation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ function translate_formula(name::AbstractString; verbose::Bool=false)
if verbose
println("translation: replacing dependency $dep_name because it's been translated before")
end
new_name = tapname * dep_name
new_name = "$(auto_tapname)/$(dep_name)"
offset = m.offsets[1]

start_idx = offset-1+adjustment
stop_idx = offset+length(dep_name)+adjustment
formula = formula[1:start_idx] * new_name * formula[stop_idx:end]
adjustment += length(tapname)
adjustment += length(auto_tapname)
end
end

Expand Down

0 comments on commit a5cc636

Please sign in to comment.