File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const Bottom = Union{}
9
9
# Define minimal array interface here to help code used in macros:
10
10
size (a:: Array ) = getfield (a, :size )
11
11
length (t:: AbstractArray ) = (@inline ; prod (size (t)))
12
- length (a:: GenericMemory ) = getfield (a, :length )
12
+ size (a:: GenericMemory ) = ( getfield (a, :length ), )
13
13
throw_boundserror (A, I) = (@noinline ; throw (BoundsError (A, I)))
14
14
15
15
# multidimensional getindex will be defined later on
Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ AtomicMemory
61
61
62
62
using Core: memoryrefoffset, memoryref_isassigned # import more functions which were not essential
63
63
64
- size (a:: GenericMemory ) = (length (a),)
65
-
66
64
IndexStyle (:: Type{<:GenericMemory} ) = IndexLinear ()
67
65
68
66
parent (ref:: GenericMemoryRef ) = ref. mem
You can’t perform that action at this time.
0 commit comments