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{}
99#  Define minimal array interface here to help code used in macros:
1010size (a:: Array ) =  getfield (a, :size )
1111length (t:: AbstractArray ) =  (@inline ; prod (size (t)))
12- length (a:: GenericMemory ) =  getfield (a, :length )
12+ size (a:: GenericMemory ) =  ( getfield (a, :length ), )
1313throw_boundserror (A, I) =  (@noinline ; throw (BoundsError (A, I)))
1414
1515#  multidimensional getindex will be defined later on
Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ AtomicMemory
6161
6262using  Core:  memoryrefoffset, memoryref_isassigned #  import more functions which were not essential
6363
64- size (a:: GenericMemory ) =  (length (a),)
65- 
6664IndexStyle (:: Type{<:GenericMemory} ) =  IndexLinear ()
6765
6866parent (ref:: GenericMemoryRef ) =  ref. mem
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments