Skip to content
Browse files

am 1cd7000: Merge "Adjust a variable type conversion."

* commit '1cd70006b3314ed7234f613092ccc5ac8f610dac':
  Adjust a variable type conversion.
  • Loading branch information...
2 parents ecf025c + 1cd7000 commit 7f2bbd3bbe2a7159854a8c037433b9ec4ad35ccb Makoto Onuki committed with Android Git Automerger Mar 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/android/providers/contacts/NameDistance.java
View
2 src/com/android/providers/contacts/NameDistance.java
@@ -149,7 +149,7 @@ public float getDistance(byte bytes1[], byte bytes2[]) {
}
float m = matches;
- float jaro = ((m / length1 + m / length2 + (m - (transpositions / 2)) / m)) / 3;
+ float jaro = ((m / length1 + m / length2 + (m - (transpositions / 2f)) / m)) / 3;
if (jaro < WINKLER_BONUS_THRESHOLD) {
return jaro;

0 comments on commit 7f2bbd3

Please sign in to comment.
Something went wrong with that request. Please try again.