Skip to content

Commit 97c3835

Browse files
Update shared/cc/StringUTF16.cc
Co-authored-by: Alex2772 <[email protected]>
1 parent 25bedaf commit 97c3835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/cc/StringUTF16.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jwm::StringUTF16::StringUTF16(const uint32_t *str) {
7070
}
7171

7272
jwm::JNILocal<jstring> jwm::StringUTF16::toJString(JNIEnv* env) const {
73-
return jwm::JNILocal<jstring>(env, env->NewString((const jchar*)c_str(), static_cast<jsize>(length())));
73+
return jwm::JNILocal<jstring>(env, env->NewString(reinterpret_cast<const jchar*>(c_str()), static_cast<jsize>(length())));
7474
}
7575

7676
jwm::StringUTF16 jwm::StringUTF16::makeFromJString(JNIEnv* env, jstring js) {

0 commit comments

Comments
 (0)