BAN: Fix bug of size of splice after slice()
I have no idea what was I doing before :D
This commit is contained in:
		
							parent
							
								
									adbbdf73c4
								
							
						
					
					
						commit
						988a4e1cd8
					
				| 
						 | 
					@ -127,8 +127,8 @@ namespace BAN
 | 
				
			||||||
		ASSERT(start <= m_size);
 | 
							ASSERT(start <= m_size);
 | 
				
			||||||
		if (length == ~size_type(0))
 | 
							if (length == ~size_type(0))
 | 
				
			||||||
			length = m_size - start;
 | 
								length = m_size - start;
 | 
				
			||||||
		ASSERT(start + length <= m_size);
 | 
							ASSERT(m_size - start >= length);
 | 
				
			||||||
		return Span(m_data + start, m_size - start - length);
 | 
							return Span(m_data + start, length);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue