You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2026/08/07 12:10:12 UTC
(openoffice) 04/05: Get the integer parameters passed to Min() to have the same type on all platforms.
This is an automated email from the ASF dual-hosted git repository.
jimjag pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 77f9ea5be6029c993eb5a2030091c4e61270558e
Author: Damjan Jovanovic <da...@apache.org>
AuthorDate: Sat Jan 4 14:56:24 2025 +0200
Get the integer parameters passed to Min() to have the same type
on all platforms.
Patch by: me
(cherry picked from commit 50afe12f1bad5058f456099ad5e48203f14c167f)
(cherry picked from commit 43d3b3372455c0d584c915485ab9a06ce70b2065)
---
main/connectivity/source/drivers/dbase/DTable.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main/connectivity/source/drivers/dbase/DTable.cxx b/main/connectivity/source/drivers/dbase/DTable.cxx
index f4188653d1..acefc7d610 100644
--- a/main/connectivity/source/drivers/dbase/DTable.cxx
+++ b/main/connectivity/source/drivers/dbase/DTable.cxx
@@ -1343,7 +1343,7 @@ sal_Bool ODbaseTable::CreateFile(const INetURLObject& aFile, sal_Bool& bCreateMe
{
throwInvalidColumnType(STR_INVALID_COLUMN_PRECISION, aName);
}
- (*m_pFileStream) << (sal_uInt8) Min((sal_uIntPtr)nPrecision, 255UL); //Feldlaenge
+ (*m_pFileStream) << (sal_uInt8) Min(nPrecision, (sal_Int32)255UL); //Feldlaenge
nRecLength = nRecLength + (sal_uInt16)::std::min((sal_uInt16)nPrecision, (sal_uInt16)255UL);
(*m_pFileStream) << (sal_uInt8)0; //Nachkommastellen
break;