Skip to content

Commit 573db77

Browse files
authored
dataids(::AbstractArray) method: elide redundant UInt call (#59468)
`objectid` only returns `UInt` anyway.
1 parent 191be7c commit 573db77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/abstractarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ parts can specialize this method to return the concatenation of the `dataids` of
16011601
their component parts. A typical definition for an array that wraps a parent is
16021602
`Base.dataids(C::CustomArray) = dataids(C.parent)`.
16031603
"""
1604-
dataids(A::AbstractArray) = (UInt(objectid(A)),)
1604+
dataids(A::AbstractArray) = (objectid(A),)
16051605
dataids(A::Memory) = (UInt(A.ptr),)
16061606
dataids(A::Array) = dataids(A.ref.mem)
16071607
dataids(::AbstractRange) = ()

0 commit comments

Comments
 (0)