Skip to content

Commit

Permalink
Work around inference problem in div(::UInt128, ::UInt128)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters authored and JeffBezanson committed Mar 1, 2018
1 parent dd0721a commit c002de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/int.jl
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ if Core.sizeof(Int) == 4
return Int128(div(BigInt(x), BigInt(y)))
end
function div(x::UInt128, y::UInt128)
return UInt128(div(BigInt(x), BigInt(y)))
return UInt128(div(BigInt(x), BigInt(y)))::UInt128
end

function rem(x::Int128, y::Int128)
Expand Down

0 comments on commit c002de7

Please sign in to comment.