File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed 
nanoFramework.CoreLibrary/System Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1-  // 
1+ // 
22// Copyright (c) .NET Foundation and Contributors 
33// Portions Copyright (c) Microsoft Corporation.  All rights reserved. 
44// See LICENSE file in the project root for full license information. 
@@ -112,14 +112,14 @@ public byte this[int index]
112112        /// </exception> 
113113        public  void  CopyTo ( SpanByte  destination ) 
114114        { 
115-             if  ( destination . Length  <  _length   -   _start ) 
115+             if  ( destination . Length  <  _length ) 
116116            { 
117117                throw  new  ArgumentException ( $ "Destination too small") ; 
118118            } 
119119
120-             for  ( int  i  =  0 ;  i  <  _array . Length ;  i ++ ) 
120+             for  ( int  i  =  0 ;  i  <  _length ;  i ++ ) 
121121            { 
122-                 destination [ i ]  =  _array [ i ] ; 
122+                 destination [ i ]  =  _array [ _start   +   i ] ; 
123123            } 
124124        } 
125125
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments