diff options
author | 2012-08-14 03:16:27 -0700 | |
---|---|---|
committer | 2012-08-14 03:16:27 -0700 | |
commit | 822139bdf427bccd80fe46d925b90e03caedb773 (patch) | |
tree | 030e1bc08837d81619d7d3f7463a55d5cdd1a772 /native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp | |
parent | 6c2c1a04f17c38b47ddd6878c54a4fb5c98ed970 (diff) | |
parent | 267030dd82a6165ca56899d2988b5dc51ebea104 (diff) | |
download | latinime-822139bdf427bccd80fe46d925b90e03caedb773.tar.gz latinime-822139bdf427bccd80fe46d925b90e03caedb773.tar.xz latinime-822139bdf427bccd80fe46d925b90e03caedb773.zip |
am 267030dd: Cleanup casts.
* commit '267030dd82a6165ca56899d2988b5dc51ebea104':
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) { |