From 975414c2fe6dc44f290db822b09f96aac8ad29b6 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Wed, 18 Dec 2024 08:18:40 +0100 Subject: [PATCH] auto difference type --- libsrc/core/array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/array.hpp b/libsrc/core/array.hpp index e5afa3a5..b001acec 100644 --- a/libsrc/core/array.hpp +++ b/libsrc/core/array.hpp @@ -296,7 +296,7 @@ namespace ngcore NETGEN_INLINE T_Range Split (size_t nr, int tot) const { - T diff = next-first; + auto diff = next-first; return T_Range (first + nr * diff / tot, first + (nr+1) * diff / tot); }