summaryrefslogtreecommitdiff
path: root/jvmaccess
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-17 10:39:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-17 10:39:06 +0100
commit3f448be5d894438c1293468ed13523222119b54f (patch)
tree812ab6b4910c87298f6a495d5c79ccf7ebc9c361 /jvmaccess
parent6a8a84c72f89930094870df1ed2a65bfe5768a44 (diff)
Don't assume sal_Unicode is unsigned short
Change-Id: I870f7c5c68ee9c9668e82833ea6277adfd49a686
Diffstat (limited to 'jvmaccess')
-rw-r--r--jvmaccess/source/classpath.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/jvmaccess/source/classpath.cxx b/jvmaccess/source/classpath.cxx
index 3f0a3e3c2c2a..6b4436ae1719 100644
--- a/jvmaccess/source/classpath.cxx
+++ b/jvmaccess/source/classpath.cxx
@@ -74,7 +74,7 @@ jobjectArray jvmaccess::ClassPath::translateToUrls(
}
jvalue arg;
arg.l = environment->NewString(
- static_cast< jchar const * >(url.getStr()),
+ reinterpret_cast< jchar const * >(url.getStr()),
static_cast< jsize >(url.getLength()));
if (arg.l == nullptr) {
return nullptr;