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 <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2022-04-10 10:03:57 +02:00
parent 7e3d93fd57
commit cb66be9e91

View File

@@ -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