In the recent (and probably earlier) version of Julia we obtain the following results, the second of which is wrong. ``` julia> VERSION v"1.11.4" julia> mod(UInt16(15000), Int16(17767)) 15000 julia> mod(UInt16(15000), Int16(17768)) -15000 julia> a = Int16(6000); b = UInt16(65000) 0xfde8 julia> mod(a, b) 0x1558 julia> Int(ans) 5464 ``` That is probably unintended result of overflows in [base/int.jl:mod](https://github.com/JuliaLang/julia/blob/f9365a5ecd336388c0d4f3c987c1c8fde95b4da3/base/int.jl#L289-L290)