]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix a warning in python wrappers
authorDenis Davydov <davydden@gmail.com>
Sun, 24 Sep 2017 05:04:09 +0000 (07:04 +0200)
committerDenis Davydov <davydden@gmail.com>
Sun, 24 Sep 2017 05:04:09 +0000 (07:04 +0200)
contrib/python-bindings/source/cell_accessor_wrapper.cc

index ce00a3b37971b34b9cee3d85ce808dd67a3822e6..c225f9677c8a1084f59d367b4be61efd9135e432 100644 (file)
@@ -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<const types::material_id>(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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.