A bug fix for the mistyped space algorithm
Bug: 3311719
-- also fixed compiler warnings
Change-Id: I6941c0d02f10d67af88bc943748dde8d8783fabb
diff --git a/native/src/proximity_info.cpp b/native/src/proximity_info.cpp
index 5f2d09f..102123c 100644
--- a/native/src/proximity_info.cpp
+++ b/native/src/proximity_info.cpp
@@ -42,7 +42,7 @@
}
inline int ProximityInfo::getStartIndexFromCoordinates(const int x, const int y) const {
- return (y / CELL_HEIGHT) * GRID_WIDTH + (x / CELL_WIDTH)
+ return ((y / CELL_HEIGHT) * GRID_WIDTH + (x / CELL_WIDTH))
* MAX_PROXIMITY_CHARS_SIZE;
}