]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/encconv.cpp
Fixed missing focus problem.
[wxWidgets.git] / src / common / encconv.cpp
index dd7c28d52048b3a26fea28ff36207fa5bf8c3f84..727de4901681fa755ebf6a50b3eecb6ec28d70fc 100644 (file)
@@ -106,7 +106,7 @@ static CharsetItem* BuildReverseTable(wxUint16 *tbl)
     CharsetItem *rev = new CharsetItem[128];
 
     for (int i = 0; i < 128; i++)
-        rev[i].c = 128 + i, rev[i].u = tbl[i];
+        rev[i].c = wxUint8(128 + i), rev[i].u = tbl[i];
 
     qsort(rev, 128, sizeof(CharsetItem), CompareCharsetItems);