From 9324121953bb33e13b9050657b9ef63680fadfae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Wed, 31 May 2017 07:54:12 +0200 Subject: [PATCH] smaller int-type for GetNV --- libsrc/meshing/meshtype.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 129e1fce..6bca8233 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -680,7 +680,7 @@ namespace netgen /// int GetNP () const { return np; } /// - short int GetNV() const + uint8_t GetNV() const { __assume(typ >= TET && typ <= HEX); switch (typ) @@ -699,7 +699,8 @@ namespace netgen #ifdef DEBUG PrintSysError ("Element3d::GetNV not implemented for typ ", typ); #endif - return -1; + __assume(false); + return -1; } }