Skip to content

Commit

Permalink
Yet another small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Oct 6, 2016
1 parent 2ec8f03 commit 31aa7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settype.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ function dd_set_card(st::Cset_type)
end

function dd_settype(st::Cset_type, s::IntSet, offset::Integer=0)
offset = Clong(offset)
for el in s
dd_set_addelem(st, convert(Clong, offset+el))
dd_set_addelem(st, Clong(offset+el))
end
end

Expand All @@ -36,6 +35,7 @@ function CDDSet(s::IntSet, maxel::Clong, offset::Integer=0)
dd_settype(st, s, offset)
CDDSet(st, maxel)
end
CDDSet(s::IntSet, maxel, offset::Integer=0) = CDDSet(s, Clong(maxel), offset)

function Base.convert(::Type{IntSet}, st::CDDSet)
s = IntSet()
Expand Down

0 comments on commit 31aa7ff

Please sign in to comment.