diff --git a/libsrc/core/exception.hpp b/libsrc/core/exception.hpp index 87d71aa0..c3d05025 100644 --- a/libsrc/core/exception.hpp +++ b/libsrc/core/exception.hpp @@ -90,7 +90,7 @@ namespace ngcore #if defined(NETGEN_ENABLE_CHECK_RANGE) && !defined(__CUDA_ARCH__) #define NETGEN_CHECK_RANGE(value, min, max_plus_one) \ { if ((value)<(min) || (value)>=(max_plus_one)) \ - throw ngcore::RangeException(__FILE__ ":" NETGEN_CORE_NGEXEPTION_STR(__LINE__) "\t", (value), (min), int(max_plus_one)); } + throw ngcore::RangeException(__FILE__ ":" NETGEN_CORE_NGEXEPTION_STR(__LINE__) "\t", int(value), int(min), int(max_plus_one)); } #define NETGEN_CHECK_SHAPE(a,b) \ { if(a.Shape() != b.Shape()) \ throw ngcore::Exception(__FILE__": shape don't match"); }