BackupRestore: bugfix due to mixup of size_t and unsigned int.

This commit is contained in:
Robert Kloefkorn
2016-02-18 15:30:52 +01:00
parent 8dfc8d82fc
commit ce04e22399

View File

@@ -106,7 +106,7 @@ namespace Opm {
void readContainerImpl( std::istream& stream, Container& container, const bool adjustSize ) void readContainerImpl( std::istream& stream, Container& container, const bool adjustSize )
{ {
typedef typename Container :: value_type T; typedef typename Container :: value_type T;
size_t dataSize = 0; unsigned int dataSize = 0;
readValue( stream, dataSize ); readValue( stream, dataSize );
if( adjustSize && dataSize > 0 ) { if( adjustSize && dataSize > 0 ) {
resizeContainer( container, dataSize/sizeof(T) ); resizeContainer( container, dataSize/sizeof(T) );