diff options
Diffstat (limited to 'connectivity/source/drivers/odbc/OConnection.cxx')
-rw-r--r-- | connectivity/source/drivers/odbc/OConnection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/odbc/OConnection.cxx b/connectivity/source/drivers/odbc/OConnection.cxx index 5cd342b93e30..1d71ab72d3fb 100644 --- a/connectivity/source/drivers/odbc/OConnection.cxx +++ b/connectivity/source/drivers/odbc/OConnection.cxx @@ -129,9 +129,9 @@ SQLRETURN OConnection::OpenConnection(const OUString& aConnectStr, sal_Int32 nTi nSQLRETURN = N3SQLDriverConnect(m_aConnectionHandle, nullptr, szConnStrIn, - (SQLSMALLINT) std::min<sal_Int32>((sal_Int32)2048,aConStr.getLength()), + static_cast<SQLSMALLINT>(std::min<sal_Int32>(sal_Int32(2048),aConStr.getLength())), szConnStrOut, - (SQLSMALLINT) sizeof szConnStrOut, + SQLSMALLINT(sizeof szConnStrOut), &cbConnStrOut, nSilent); if (nSQLRETURN == SQL_ERROR || nSQLRETURN == SQL_NO_DATA) |