added missing ifdef for debug

This commit is contained in:
David Bommes
2016-10-17 17:43:48 +02:00
parent c70cdc215d
commit e11f553c92

View File

@@ -399,7 +399,9 @@ namespace OMFormat {
template <typename T> 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 <typename T> Chunk::Float_Size float_size(const T& d)
#endif
{
#ifndef NDEBUG
assert( is_float(d) );
#endif
switch( sizeof(T) )
{