]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/selstore.h
Don't infinitely recurse when setting the child focus. Without
[wxWidgets.git] / include / wx / selstore.h
index 8ddb73be184eb7238eab1f7c3fb32d2ba513d00c..5c7ffd18638745fddeda08578308906eeaf84b03 100644 (file)
 // wxSelectedIndices is just a sorted array of indices
 // ----------------------------------------------------------------------------
 
 // wxSelectedIndices is just a sorted array of indices
 // ----------------------------------------------------------------------------
 
-inline int CMPFUNC_CONV wxSizeTCmpFn(size_t n1, size_t n2) { return n1 - n2; }
+inline int CMPFUNC_CONV wxSizeTCmpFn(size_t n1, size_t n2)
+{
+    return (int)(n1 - n2);
+}
 
 
-WX_DEFINE_SORTED_EXPORTED_ARRAY_CMP_LONG(size_t,
-                                         wxSizeTCmpFn,
-                                         wxSelectedIndices);
+WX_DEFINE_SORTED_EXPORTED_ARRAY_CMP_SIZE_T(size_t,
+                                           wxSizeTCmpFn,
+                                           wxSelectedIndices);
 
 // ----------------------------------------------------------------------------
 // wxSelectionStore is used to store the selected items in the virtual
 
 // ----------------------------------------------------------------------------
 // wxSelectionStore is used to store the selected items in the virtual