From c2e1fa55f3eab49770b4c0c6efc5850c207c8b8c Mon Sep 17 00:00:00 2001 From: kalmar Date: Thu, 26 Jan 2017 12:51:48 +0100 Subject: [PATCH] arrays in julia start at 1 --- src/Groups.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Groups.jl b/src/Groups.jl index ba1901f..c01b624 100644 --- a/src/Groups.jl +++ b/src/Groups.jl @@ -232,7 +232,7 @@ function replace_all!{T}(W::GWord{T}, subst_dict::Dict{GWord{T}, GWord{T}}) i = findfirst(W, toreplace) while i ≠ 0 replace!(W,i,toreplace, replacement) - i = findnext(W, toreplace, i-1) + i = findnext(W, toreplace, i) end end return W