From 31aa7ffe2d92bcc8010b32fe2962889550fcd75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Thu, 6 Oct 2016 19:18:50 +0200 Subject: [PATCH] Yet another small fix --- src/settype.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settype.jl b/src/settype.jl index 38904ed..5419457 100644 --- a/src/settype.jl +++ b/src/settype.jl @@ -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 @@ -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()