diff options
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h index 23fb104..faadad4 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -1078,10 +1078,10 @@ H5_DLL int HDvasprintf(char **bufp, const char *fmt, va_list _ap); */ #ifndef NDEBUG #define H5_CHECK_OVERFLOW(var, vartype, casttype) \ - { \ + do { \ casttype _tmp_overflow = (casttype)(var); \ assert((var) == (vartype)_tmp_overflow); \ - } + } while (0) #else /* NDEBUG */ #define H5_CHECK_OVERFLOW(var, vartype, casttype) #endif /* NDEBUG */ |