diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2014-01-30 06:10:33 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2014-01-30 06:13:47 +0100 |
commit | a904aa609dddb80a44cf34a5e4299efe0dc2c49f (patch) | |
tree | ef90e7c04be073f9bbc2762ed621a6899e847940 /connectivity | |
parent | TODO comment (diff) | |
download | core-a904aa609dddb80a44cf34a5e4299efe0dc2c49f.tar.gz core-a904aa609dddb80a44cf34a5e4299efe0dc2c49f.zip |
firebird driver: do not assume sizeof(short) == 2
Change-Id: I4b4e6caa34c23baa75a87cf1750dce3ca3ae8aed
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/ResultSet.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx index fa148bbd8acc..a89e4609edd4 100644 --- a/connectivity/source/drivers/firebird/ResultSet.cxx +++ b/connectivity/source/drivers/firebird/ResultSet.cxx @@ -507,7 +507,7 @@ OUString OResultSet::retrieveValue(const sal_Int32 nColumnIndex, const ISC_SHORT { // First 2 bytes are a short containing the length of the string // No idea if sqllen is still valid here? - short aLength = *((short*) m_pSqlda->sqlvar[nColumnIndex-1].sqldata); + sal_uInt16 aLength = *((sal_uInt16*) m_pSqlda->sqlvar[nColumnIndex-1].sqldata); return OUString(m_pSqlda->sqlvar[nColumnIndex-1].sqldata + 2, aLength, RTL_TEXTENCODING_UTF8); |