Skip to content

Commit

Permalink
Merge pull request #6 from DataEverywhere/alignment-fixes
Browse files Browse the repository at this point in the history
Fix some more porting errors in alignment code
  • Loading branch information
paulfitz committed Nov 24, 2014
2 parents cd0893f + e7256ab commit 529f281
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/coopy/alignment.rb
Expand Up @@ -148,7 +148,7 @@ def to_order_3
if vp.has_key?(xp)
order.add(-1,-1,xp)
prev = xp
vp.remove(xp)
vp.delete(xp)
ct_vp-=1
end
xp+=1
Expand All @@ -162,7 +162,7 @@ def to_order_3
if zl.nil?
if vl.has_key?(xl)
order.add(xl,-1,-1)
vl.remove(xl)
vl.delete(xl)
ct_vl-=1
end
xl+=1
Expand Down Expand Up @@ -203,9 +203,9 @@ def to_order_3
if vr.has_key?(xr)
order.add(-1,xr,zr)
prev = zr
vp.remove(zr)
vp.delete(zr)
ct_vp-=1
vr.remove(xr)
vr.delete(xr)
ct_vr-=1
xp = zr+1
end
Expand Down Expand Up @@ -236,11 +236,11 @@ def to_order_3
if vl.has_key?(xl)
order.add(xl,a2b(zl),zl)
prev = zl
vp.remove(zl)
vp.delete(zl)
ct_vp-=1
vl.remove(xl)
vl.delete(xl)
ct_vl-=1
vr.remove(a2b(zl))
vr.delete(a2b(zl))
ct_vr-=1
xp = zl+1
xr = a2b(zl)+1
Expand Down

0 comments on commit 529f281

Please sign in to comment.