File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ false
767
767
checkindex (:: Type{Bool} , inds:: AbstractUnitRange , i) =
768
768
throw (ArgumentError (" unable to check bounds for indices of type $(typeof (i)) " ))
769
769
checkindex (:: Type{Bool} , inds:: AbstractUnitRange , i:: Real ) = (first (inds) <= i) & (i <= last (inds))
770
- checkindex (:: Type{Bool} , ind:: OneTo{T} , i:: T ) where {T<: BitInteger } = unsigned (i- 1 ) < last (ind)
770
+ checkindex (:: Type{Bool} , ind:: OneTo{T} , i:: T ) where {T<: BitInteger } = unsigned (i - one (i)) < unsigned ( last (ind) )
771
771
checkindex (:: Type{Bool} , inds:: AbstractUnitRange , :: Colon ) = true
772
772
checkindex (:: Type{Bool} , inds:: AbstractUnitRange , :: Slice ) = true
773
773
function checkindex (:: Type{Bool} , inds:: AbstractUnitRange , r:: AbstractRange )
You can’t perform that action at this time.
0 commit comments