From: Denis Davydov Date: Sun, 24 Sep 2017 05:04:09 +0000 (+0200) Subject: fix a warning in python wrappers X-Git-Tag: v9.0.0-rc1~1043^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a8658b724c650b3265364130f033836ce72ec95;p=dealii.git fix a warning in python wrappers --- 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);