From 3a8658b724c650b3265364130f033836ce72ec95 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Sun, 24 Sep 2017 07:04:09 +0200 Subject: [PATCH] fix a warning in python wrappers --- contrib/python-bindings/source/cell_accessor_wrapper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/python-bindings/source/cell_accessor_wrapper.cc b/contrib/python-bindings/source/cell_accessor_wrapper.cc index ce00a3b379..c225f9677c 100644 --- a/contrib/python-bindings/source/cell_accessor_wrapper.cc +++ b/contrib/python-bindings/source/cell_accessor_wrapper.cc @@ -400,7 +400,7 @@ namespace python void CellAccessorWrapper::set_material_id(const int material_id) { - AssertThrow(material_id < numbers::invalid_material_id, + AssertThrow(static_cast(material_id) < numbers::invalid_material_id, ExcMessage("material_id is too large.")); if ((dim == 2) && (spacedim == 2)) return internal::set_material_id<2,2>(material_id, cell_accessor); -- 2.39.5