c2ac5d4
diff -uNr 0ad-0.0.22-alpha.orig/source/gui/CDropDown.cpp 0ad-0.0.22-alpha/source/gui/CDropDown.cpp
c2ac5d4
--- 0ad-0.0.22-alpha.orig/source/gui/CDropDown.cpp	2017-06-30 01:39:12.000000000 +0200
c2ac5d4
+++ 0ad-0.0.22-alpha/source/gui/CDropDown.cpp	2017-07-27 10:03:04.647238245 +0200
c2ac5d4
@@ -352,7 +352,7 @@
c2ac5d4
 					int diff = 0;
c2ac5d4
 					for (size_t j = 0; j < m_InputBuffer.length(); ++j)
c2ac5d4
 					{
c2ac5d4
-						diff = std::abs(pList->m_Items[i].GetRawString().LowerCase()[j] - (int)m_InputBuffer[j]);
c2ac5d4
+						diff = std::abs((int)pList->m_Items[i].GetRawString().LowerCase()[j] - (int)m_InputBuffer[j]);
c2ac5d4
 						if (diff == 0)
c2ac5d4
 							indexOfDifference = j+1;
c2ac5d4
 						else