X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2eb10e2a17a02acaaa32a41304243999f3a862a1..b33f7651ae55310d7d76b0205e409464ba8af484:/include/wx/selstore.h diff --git a/include/wx/selstore.h b/include/wx/selstore.h index 8ddb73be18..5c7ffd1863 100644 --- a/include/wx/selstore.h +++ b/include/wx/selstore.h @@ -18,11 +18,14 @@ // 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