summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/drivers/odbc/OTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/odbc/OTools.cxx b/connectivity/source/drivers/odbc/OTools.cxx
index a4c3200c5b53..a5395aaf7ff3 100644
--- a/connectivity/source/drivers/odbc/OTools.cxx
+++ b/connectivity/source/drivers/odbc/OTools.cxx
@@ -145,7 +145,7 @@ void OTools::getValue( OConnection const * _pConnection,
memset(_pValue, 0, _nSize);
#ifdef OSL_BIGENDIAN
// This is skewed in favour of integer types
- _pValue += _nSize - properSize;
+ _pValue = static_cast<char*>(_pValue) + _nSize - properSize;
#endif
}
}