This is an automated email from the ASF dual-hosted git repository. leginee pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 43d3b3372455c0d584c915485ab9a06ce70b2065 Author: Damjan Jovanovic <[email protected]> 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) --- 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;
