Skip to content

Commit

Permalink
Bool, Float16, BigFloat and BigInt are not radixsort_safe (#329)
Browse files Browse the repository at this point in the history
This is due to implementation in SortingAlgorithms.jl.
  • Loading branch information
xiaodaigh authored and nalimilan committed Jan 2, 2018
1 parent 9e5a83f commit a1523b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/counts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ end

const BaseRadixSortSafeTypes = Union{Int8, Int16, Int32, Int64, Int128,
UInt8, UInt16, UInt32, UInt64, UInt128,
Float16, Float32, Float64, Bool,
BigInt, BigFloat}
Float32, Float64}

"Can the type be safely sorted by radixsort"
radixsort_safe(::Type{T}) where {T<:BaseRadixSortSafeTypes} = true
Expand Down

0 comments on commit a1523b9

Please sign in to comment.