You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by da...@apache.org on 2025/01/09 03:48:13 UTC
(openoffice) 19/27: 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.
damjan pushed a commit to branch windows-amd64
in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 50afe12f1bad5058f456099ad5e48203f14c167f
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
---
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 10aeaefd9e..665041f6c7 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;