Commit 62c22a01 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'add_missing_break' into 'master'

Add missing break statements in OM::IO::restore

See merge request !147
parents 827f34f4 f714802c
Pipeline #5879 passed with stage
in 41 minutes and 58 seconds
......@@ -145,7 +145,7 @@ namespace IO {
}
// helper to store a an integer
// helper to restore a an integer
template< typename T >
size_t
restore( std::istream& _is,
......@@ -171,25 +171,28 @@ namespace IO {
OMFormat::int16 v;
bytes = restore( _is, v, _swap );
_val = static_cast<T>(v);
break;
}
case OMFormat::Chunk::Integer_32:
{
OMFormat::int32 v;
bytes = restore( _is, v, _swap );
_val = static_cast<T>(v);
break;
}
case OMFormat::Chunk::Integer_64:
{
OMFormat::int64 v;
bytes = restore( _is, v, _swap );
_val = static_cast<T>(v);
break;
}
}
return bytes;
}
// helper to store a an unsigned integer
// helper to restore a an unsigned integer
template< typename T >
size_t
restore( std::istream& _is,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment