diff options
author | 2012-08-14 03:18:34 -0700 | |
---|---|---|
committer | 2012-08-14 03:18:34 -0700 | |
commit | 5d7f267ffbb4563c2ed2134f2d04995055c77360 (patch) | |
tree | 2dc3741b1edae7107c279c29bb7cec8f604522a7 /native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp | |
parent | 7e1160c6c52835c46b19eba8f31fa717f3cb0a74 (diff) | |
parent | 822139bdf427bccd80fe46d925b90e03caedb773 (diff) | |
download | latinime-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.cpp | 8 |
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) { |