From e1917c8d8af28d22511ccad225ce8249e3bfec21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Mon, 3 Apr 2017 16:45:54 +0200 Subject: [PATCH] fix warnings --- libsrc/csg/zrefine.cpp | 8 ++++---- libsrc/meshing/bisect.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libsrc/csg/zrefine.cpp b/libsrc/csg/zrefine.cpp index be18f50b..6e0df241 100644 --- a/libsrc/csg/zrefine.cpp +++ b/libsrc/csg/zrefine.cpp @@ -259,11 +259,11 @@ namespace netgen first_id.Set(); - INDEX_2_HASHTABLE & identpts = - mesh.GetIdentifications().GetIdentifiedPoints (); - - if (&identpts) + if (mesh.GetIdentifications().HasIdentifiedPoints()) { + INDEX_2_HASHTABLE & identpts = + mesh.GetIdentifications().GetIdentifiedPoints (); + for (i = 1; i <= identpts.GetNBags(); i++) for (j = 1; j <= identpts.GetBagSize(i); j++) { diff --git a/libsrc/meshing/bisect.cpp b/libsrc/meshing/bisect.cpp index 05078bf5..1662417b 100644 --- a/libsrc/meshing/bisect.cpp +++ b/libsrc/meshing/bisect.cpp @@ -46,7 +46,7 @@ namespace netgen MarkedTet() { - for (int i = 0; i < 4; i++) { faceedges[i] = 255; } + for (int i = 0; i < 4; i++) { faceedges[i] = 127; } } };