Commit a36d42a2 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixed Array::boundLoad.

parent 5461f6c0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -509,7 +509,10 @@ boundLoad( File& file )
   if( _size < 0 )
      throw Exceptions::ArrayWrongSize( _size, "Positive is expected," );
   if( this->getSize() != 0 )
   {
      if( this->getSize() != _size )
         throw Exceptions::ArrayWrongSize( _size, convertToString( this->getSize() ) + " is expected." );
   }
   else setSize( _size );
   if( _size )
      Algorithms::ArrayIO< Value, Device, Index >::load( file, this->data, this->size );