sc/source/core/data/column2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit cb66be9e91c2ab178238b644b998d05145f5fddc Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Sun Apr 10 10:03:57 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Sun Apr 10 11:04:18 2022 +0200 Silence cid#1503835 ("UNINTENDED_INTEGER_DIVISION") Change-Id: Idfc8ea082a9547622e03830f8dcdbf4d774f7f39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132766 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index f0270e07eee9..c29b49e9d0de 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -825,7 +825,7 @@ sal_uInt16 ScColumn::GetOptimalColWidth( { nWidth += 2; sal_uInt16 nTwips = static_cast<sal_uInt16>( - std::min(nWidth / nPPTX, double(std::numeric_limits<sal_uInt16>::max() / 2))); + std::min(nWidth / nPPTX, std::numeric_limits<sal_uInt16>::max() / 2.0)); return nTwips; } else