summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-06-02 09:43:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-06-02 11:26:47 +0200
commitaa1004c04b048d6917cd9bf367ec7944ce7c57d4 (patch)
tree346bb86628a657cfd999b9da3e26904b66110d02 /chart2/source/tools
parentbeb19b0a600573cebc66c387f5941efc982ee842 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/CommonConverters.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}