aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2012-08-14 03:18:34 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-14 03:18:34 -0700
commit5d7f267ffbb4563c2ed2134f2d04995055c77360 (patch)
tree2dc3741b1edae7107c279c29bb7cec8f604522a7 /native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp
parent7e1160c6c52835c46b19eba8f31fa717f3cb0a74 (diff)
parent822139bdf427bccd80fe46d925b90e03caedb773 (diff)
downloadlatinime-5d7f267ffbb4563c2ed2134f2d04995055c77360.tar.gz
latinime-5d7f267ffbb4563c2ed2134f2d04995055c77360.tar.xz
latinime-5d7f267ffbb4563c2ed2134f2d04995055c77360.zip
am 822139bd: am 267030dd: Cleanup casts.
* commit '822139bdf427bccd80fe46d925b90e03caedb773': Cleanup casts.
Diffstat (limited to 'native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp')
-rw-r--r--native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp b/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp
index cf55580be..2add7c995 100644
--- a/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp
+++ b/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp
@@ -230,8 +230,8 @@ static jfloat latinime_BinaryDictionary_calcNormalizedScore(JNIEnv *env, jobject
env->GetCharArrayRegion(before, 0, beforeLength, beforeChars);
env->GetCharArrayRegion(after, 0, afterLength, afterChars);
return Correction::RankingAlgorithm::calcNormalizedScore(
- reinterpret_cast<unsigned short *>(beforeChars), beforeLength,
- reinterpret_cast<unsigned short *>(afterChars), afterLength, score);
+ static_cast<unsigned short *>(beforeChars), beforeLength,
+ static_cast<unsigned short *>(afterChars), afterLength, score);
}
static jint latinime_BinaryDictionary_editDistance(JNIEnv *env, jobject object,
@@ -243,8 +243,8 @@ static jint latinime_BinaryDictionary_editDistance(JNIEnv *env, jobject object,
env->GetCharArrayRegion(before, 0, beforeLength, beforeChars);
env->GetCharArrayRegion(after, 0, afterLength, afterChars);
return Correction::RankingAlgorithm::editDistance(
- reinterpret_cast<unsigned short *>(beforeChars), beforeLength,
- reinterpret_cast<unsigned short *>(afterChars), afterLength);
+ static_cast<unsigned short *>(beforeChars), beforeLength,
+ static_cast<unsigned short *>(afterChars), afterLength);
}
static void latinime_BinaryDictionary_close(JNIEnv *env, jobject object, jlong dict) {