Blob Blame History Raw
--- 0ad-0.0.21-alpha/source/gui/CDropDown.cpp.orig	2017-07-17 18:52:09.775883922 +0100
+++ 0ad-0.0.21-alpha/source/gui/CDropDown.cpp	2017-07-17 18:52:13.235881914 +0100
@@ -345,7 +345,7 @@
 					int diff = 0;
 					for (size_t j = 0; j < m_InputBuffer.length(); ++j)
 					{
-						diff = abs(pList->m_Items[i].GetOriginalString().LowerCase()[j] - (int)m_InputBuffer[j]);
+						diff = abs((int)pList->m_Items[i].GetOriginalString().LowerCase()[j] - (int)m_InputBuffer[j]);
 						if (diff == 0)
 							indexOfDifference = j+1;
 						else