Commit c7691e18 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added check for 0 size to Array::operator==

parent 5dd06298
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -413,6 +413,8 @@ operator == ( const ArrayT& array ) const
{
   if( array. getSize() != this->getSize() )
      return false;
   if( this->getSize() == 0 )
      return true;
   return Algorithms::ArrayOperations< Device, typename ArrayT::DeviceType >::
      template compareMemory< typename ArrayT::ElementType,
                              Element,