diff --git a/src/OpenMesh/Core/IO/OMFormat.hh b/src/OpenMesh/Core/IO/OMFormat.hh index bd14ad63..440872c1 100644 --- a/src/OpenMesh/Core/IO/OMFormat.hh +++ b/src/OpenMesh/Core/IO/OMFormat.hh @@ -141,8 +141,8 @@ namespace OMFormat { size_t restore( std::istream& _is, bool _swap ) { - if (_is.read( (char*)this, 4 ).eof()) - return 0; + if (_is.read( reinterpret_cast(this) , 4 ).eof()) + return 0; size_t bytes = 4; bytes += binary::restore( _is, n_vertices_, _swap );