Don't assume sal_Unicode is unsigned short

Change-Id: I870f7c5c68ee9c9668e82833ea6277adfd49a686
This commit is contained in:
Stephan Bergmann 2015-11-17 10:39:06 +01:00
parent 6a8a84c72f
commit 3f448be5d8

View file

@ -74,7 +74,7 @@ jobjectArray jvmaccess::ClassPath::translateToUrls(
} }
jvalue arg; jvalue arg;
arg.l = environment->NewString( arg.l = environment->NewString(
static_cast< jchar const * >(url.getStr()), reinterpret_cast< jchar const * >(url.getStr()),
static_cast< jsize >(url.getLength())); static_cast< jsize >(url.getLength()));
if (arg.l == nullptr) { if (arg.l == nullptr) {
return nullptr; return nullptr;