From be8d2380054ff5c5a0d1d0a3646309d2a7c4e954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 23 Aug 2023 10:31:00 +0200 Subject: [PATCH] Removed c style cast --- src/OpenMesh/Core/IO/OMFormat.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );