@@ -210,7 +210,7 @@ SamplerRangeFast(r::AbstractUnitRange{T}) where T<:BitInteger =
210
210
SamplerRangeFast (r, uint_sup (T))
211
211
212
212
function SamplerRangeFast (r:: AbstractUnitRange{T} , :: Type{U} ) where {T,U}
213
- isempty (r) && throw (ArgumentError (" range must be non-empty" ))
213
+ isempty (r) && throw (ArgumentError (" collection must be non-empty" ))
214
214
m = (last (r) - first (r)) % unsigned (T) % U # % unsigned(T) to not propagate sign bit
215
215
bw = (sizeof (U) << 3 - leading_zeros (m)) % UInt # bit-width
216
216
mask = ((1 % U) << bw) - (1 % U)
@@ -284,7 +284,7 @@ SamplerRangeInt(r::AbstractUnitRange{T}) where T<:BitInteger =
284
284
SamplerRangeInt (r, uint_sup (T))
285
285
286
286
function SamplerRangeInt (r:: AbstractUnitRange{T} , :: Type{U} ) where {T,U}
287
- isempty (r) && throw (ArgumentError (" range must be non-empty" ))
287
+ isempty (r) && throw (ArgumentError (" collection must be non-empty" ))
288
288
a = first (r)
289
289
m = (last (r) - first (r)) % unsigned (T) % U
290
290
k = m + one (U)
@@ -330,7 +330,7 @@ struct SamplerRangeNDL{U<:Unsigned,T} <: Sampler{T}
330
330
end
331
331
332
332
function SamplerRangeNDL (r:: AbstractUnitRange{T} ) where {T}
333
- isempty (r) && throw (ArgumentError (" range must be non-empty" ))
333
+ isempty (r) && throw (ArgumentError (" collection must be non-empty" ))
334
334
a = first (r)
335
335
U = uint_sup (T)
336
336
s = (last (r) - first (r)) % unsigned (T) % U + one (U) # overflow ok
369
369
function SamplerBigInt (:: Type{RNG} , r:: AbstractUnitRange{BigInt} , N:: Repetition = Val (Inf )
370
370
) where {RNG<: AbstractRNG }
371
371
m = last (r) - first (r)
372
- m. size < 0 && throw (ArgumentError (" range must be non-empty" ))
372
+ m. size < 0 && throw (ArgumentError (" collection must be non-empty" ))
373
373
nlimbs = Int (m. size)
374
374
hm = nlimbs == 0 ? Limb (0 ) : GC. @preserve m unsafe_load (m. d, nlimbs)
375
375
highsp = Sampler (RNG, Limb (0 ): hm, N)
2 commit comments
nanosoldier commentedon Oct 20, 2022
Executing the daily package evaluation, I will reply here when finished:
@nanosoldier
runtests(ALL, isdaily = true, configuration=(rr=true,))
nanosoldier commentedon Oct 21, 2022
Your package evaluation job has completed - possible new issues were detected. A full report can be found here.