don't push arrays onto arrays... doh!
This commit is contained in:
parent
74c10e375e
commit
1965db2609
1 changed files with 9 additions and 9 deletions
|
|
@ -309,8 +309,8 @@ def union(set_spec)
|
|||
end
|
||||
end
|
||||
|
||||
iA < eA.length and (! inB) and eS.push(eA[iA..eA.length])
|
||||
iB < eB.length and (! inA) and eS.push(eB[iB..eB.length])
|
||||
iA < eA.length and (! inB) and eS += eA[iA..eA.length]
|
||||
iB < eB.length and (! inA) and eS += eB[iB..eB.length]
|
||||
|
||||
s.set_pos_inf(@set["posInf"] || b.pos_inf)
|
||||
s.set_edges(eS)
|
||||
|
|
@ -355,8 +355,8 @@ def intersect(set_spec)
|
|||
end
|
||||
end
|
||||
|
||||
iA < eA.length and inB and eS.push(eA[iA..eA.length])
|
||||
iB < eB.length and inA and eS.push(eB[iB..eB.length])
|
||||
iA < eA.length and inB and eS += eA[iA..eA.length]
|
||||
iB < eB.length and inA and eS += eB[iB..eB.length]
|
||||
|
||||
s.set_neg_inf(@set["posInf"] && b.pos_inf)
|
||||
s.set_edges(eS)
|
||||
|
|
@ -400,8 +400,8 @@ def diff (set_spec)
|
|||
end
|
||||
end
|
||||
|
||||
iA < eA.length and not inB and eS.push(eA[iA..eA.length])
|
||||
iB < eB.length and inA and eS.push(eB[iB..eB.length])
|
||||
iA < eA.length and not inB and eS += eA[iA..eA.length]
|
||||
iB < eB.length and inA and eS += eB[iB..eB.length]
|
||||
|
||||
s.set_edges(eS)
|
||||
|
||||
|
|
@ -438,8 +438,8 @@ def xor(set_spec)
|
|||
end
|
||||
end
|
||||
|
||||
iA < eA.length and eS.push(eA[iA..eA.length])
|
||||
iB < eB.length and eS.push(eB[iB..eB.length])
|
||||
iA < eA.length and eS += eA[iA..eA.length]
|
||||
iB < eB.length and eS += eB[iB..eB.length]
|
||||
|
||||
s.set_pos_inf(@set["posInf"] ^ b.pos_inf)
|
||||
s.set_edges(eS)
|
||||
|
|
@ -637,7 +637,7 @@ def insert(n)
|
|||
upper = edge[i...edge.length]
|
||||
edge = lower
|
||||
edge.push(n-1, n)
|
||||
edge.push(upper)
|
||||
edge += upper
|
||||
elsif (not lGap and rGap)
|
||||
edge[i-1] += 1
|
||||
elsif ( lGap and not rGap)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue