diff --git a/src/OpenMesh/Core/IO/OMFormat.hh b/src/OpenMesh/Core/IO/OMFormat.hh index 93cc32fe..dd098929 100644 --- a/src/OpenMesh/Core/IO/OMFormat.hh +++ b/src/OpenMesh/Core/IO/OMFormat.hh @@ -399,7 +399,9 @@ namespace OMFormat { template Chunk::Integer_Size integer_size(const T& d) #endif { +#ifndef NDEBUG assert( is_integer(d) ); +#endif switch( sizeof(T) ) { @@ -423,7 +425,9 @@ namespace OMFormat { template Chunk::Float_Size float_size(const T& d) #endif { +#ifndef NDEBUG assert( is_float(d) ); +#endif switch( sizeof(T) ) {