Fix incorrect pointer indirection in sort callback function
This commit is contained in:
parent
29e1f1e9ce
commit
db29d5efba
1 changed files with 3 additions and 2 deletions
|
|
@ -285,10 +285,11 @@ inline bool GetRandomBooleanVal()
|
|||
return (rand() % 2) != 0;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
int gpiro_cmpfunc(const void* a, const void* b)
|
||||
{
|
||||
const wxPGProperty* p1 = (const wxPGProperty*) a;
|
||||
const wxPGProperty* p2 = (const wxPGProperty*) b;
|
||||
const wxPGProperty* p1 = *static_cast<wxPGProperty* const*>(a);
|
||||
const wxPGProperty* p2 = *static_cast<wxPGProperty* const*>(b);
|
||||
return (int) (((size_t)p1->GetClientData()) - ((size_t)p2->GetClientData()));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue