JeffreySarnoff / SaferIntegers.jl

These integer types use checked arithmetic, otherwise they are as system types.
MIT License
59 stars 10 forks source link

Fix "UndefVarError: x not defined" in ndigits0z #18

Closed mkitti closed 3 years ago

mkitti commented 3 years ago

While trying to compose Interpolations.jl and SaferIntegers, I ran into this issue:

julia> itpi = LinearInterpolation(SafeInt[1,10000],SafeInt[1,10000]; extrapolation_bc=Line())
ERROR: UndefVarError: x not defined
Stacktrace:
  [1] ndigits0z(n::SafeInt64, b::Int64)
    @ SaferIntegers ~\.julia\packages\SaferIntegers\nOUgY\src\int_ops.jl:16
  [2] hash(x::SafeInt64, h::UInt64)
    @ Base .\float.jl:516

It seems to be a simple typo.

JeffreySarnoff commented 3 years ago

thank you -- merging