chart2/source/tools/CommonConverters.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aa1004c04b048d6917cd9bf367ec7944ce7c57d4
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Jun 2 09:43:45 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Jun 2 11:26:47 2022 +0200

    Use o3tl::make_unsigned, nPolygonIndex is already clamped to non-negative 
here
    
    Change-Id: Ib174df281389b334396905a94fc395900e7d9eb9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135290
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/chart2/source/tools/CommonConverters.cxx 
b/chart2/source/tools/CommonConverters.cxx
index 6330d2137edd..6e47b548370d 100644
--- a/chart2/source/tools/CommonConverters.cxx
+++ b/chart2/source/tools/CommonConverters.cxx
@@ -192,7 +192,7 @@ void AddPointToPoly( 
std::vector<std::vector<css::drawing::Position3D>>& rPoly,
     }
 
     //make sure that we have enough polygons
-    if(nPolygonIndex >= static_cast<sal_Int32>(rPoly.size()) )
+    if(o3tl::make_unsigned(nPolygonIndex) >= rPoly.size() )
     {
         rPoly.resize(nPolygonIndex+1);
     }

Reply via email to