Closed
Description
MWE:
julia> using BitBasis
julia> INT = BitBasis.longinttype(3000, 2)
LongLongUInt{47}
julia> bmask(INT, 1:3000)
ERROR: MethodError: no method matching sub_with_overflow(::UInt64, ::Bool)
The function `sub_with_overflow` exists, but no method is defined for this combination of argument types.
Closest candidates are:
sub_with_overflow(::Bool, ::Bool)
@ Base checked.jl:205
sub_with_overflow(::T, ::T) where T<:Union{UInt128, UInt16, UInt32, UInt64, UInt8}
@ Base checked.jl:204
sub_with_overflow(::BigInt, ::BigInt)
@ Base gmp.jl:834
...
Stacktrace:
[1] _ssub
@ ~/.julia/packages/BitBasis/cTWNs/src/longlonguint.jl:120 [inlined]
[2] _ssub(x::NTuple{47, UInt64}, y::NTuple{47, UInt64}, c::Bool)
@ BitBasis ~/.julia/dev/BitBasis/src/longlonguint.jl:124
[3] -
@ ~/.julia/packages/BitBasis/cTWNs/src/longlonguint.jl:112 [inlined]
[4] bmask(::Type{LongLongUInt{47}}, range::UnitRange{Int64})
@ BitBasis ~/.julia/dev/BitBasis/src/bit_operations.jl:106
[5] top-level scope
@ REPL[28]:1
Metadata
Metadata
Assignees
Labels
No labels