From 8d11732346d792a72001bc5ccd43ef41e90b5169 Mon Sep 17 00:00:00 2001
From: Robert K <robertk@posteo.org>
Date: Sat, 15 Oct 2022 14:36:17 +0200
Subject: [PATCH] [cleanup] Remove signed integer comparison warning.

---
 dune/python/istl/bvector.hh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dune/python/istl/bvector.hh b/dune/python/istl/bvector.hh
index ec822af38..742d9583b 100644
--- a/dune/python/istl/bvector.hh
+++ b/dune/python/istl/bvector.hh
@@ -57,12 +57,13 @@ namespace Dune
       inline static void copy ( pybind11::buffer buffer, BlockVector &v )
       {
         typedef typename BlockVector::field_type field_type;
+        typedef typename BlockVector::size_type  size_type;
 
         pybind11::buffer_info info = buffer.request();
 
         if( info.format != pybind11::format_descriptor< field_type >::format() )
           throw pybind11::value_error( "Incompatible buffer format." );
-        if( info.ndim != blockLevel<BlockVector>() )
+        if( size_type(info.ndim) != blockLevel<BlockVector>() )
           throw pybind11::value_error( "Block vectors can only be initialized from one-dimensional buffers." );
 
         copy( static_cast< const char * >( info.ptr ), info.shape.data(), info.strides.data(), v );
-- 
GitLab