Update intfuncs.jl

otherwise, even tough `pad` should be non-negative
julia> digits(5,2,uint64(8))
ERROR: `digits` has no method matching digits(::Int64, ::Int64, ::Uint64)

backport of 07f26b491ee2091afd1b06924899a7514abe03fa