diff options
author | 2011-03-04 22:50:19 -0800 | |
---|---|---|
committer | 2011-03-04 23:25:48 -0800 | |
commit | 3c4bb7747d1a16d6b9d2d34992bad250069632a7 (patch) | |
tree | 0786052c7adb9304c264c7026a144a3c43a17a4f /native/src/proximity_info.cpp | |
parent | eaecb56f948a4979e72346f6c5c64b56f7bc7bbf (diff) | |
download | latinime-3c4bb7747d1a16d6b9d2d34992bad250069632a7.tar.gz latinime-3c4bb7747d1a16d6b9d2d34992bad250069632a7.tar.xz latinime-3c4bb7747d1a16d6b9d2d34992bad250069632a7.zip |
A bug fix for the mistyped space algorithm
Bug: 3311719
-- also fixed compiler warnings
Change-Id: I6941c0d02f10d67af88bc943748dde8d8783fabb
Diffstat (limited to 'native/src/proximity_info.cpp')
-rw-r--r-- | native/src/proximity_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/proximity_info.cpp b/native/src/proximity_info.cpp index 5f2d09f5c..102123c3c 100644 --- a/native/src/proximity_info.cpp +++ b/native/src/proximity_info.cpp @@ -42,7 +42,7 @@ ProximityInfo::~ProximityInfo() { } 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; } |