Skip to content

Commit ab7106b

Browse files
authored
Redefine integer addition
1 parent 51a952e commit ab7106b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SortingAlgorithms.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function sort!(v::AbstractVector, lo::Int, hi::Int, a::HeapSortAlg, o::Ordering)
3939
v
4040
end
4141

42+
Base.:+(x::Int, y::Int) = Int(Int128(x) + Int128(y))
4243

4344
## Radix sort
4445

0 commit comments

Comments
 (0)