summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx')
-rw-r--r--connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx b/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx
index 3fb691d5524a..1b13ed62c322 100644
--- a/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx
+++ b/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx
@@ -294,7 +294,7 @@ SAL_DLLPUBLIC_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNat
}
OSL_ENSURE(nLen >= nBytesRead,"Buffer is too small!");
OSL_ENSURE(aData.getLength() >= nBytesRead,"Buffer is too small!");
- env->SetByteArrayRegion(buffer,0,nBytesRead,&aData[0]);
+ env->SetByteArrayRegion(buffer,0,nBytesRead,(const jbyte*) &aData[0]);
#ifdef HSQLDB_DBG
aDataLog.write( &aData[0], nBytesRead );
#endif