From 0cb91aedb4553c792d0e1b7b17deec9a7d1370d3 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Mon, 14 Aug 2023 12:25:56 +0200 Subject: [PATCH] all args for Exception are integer --- libsrc/core/exception.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }