Fix: Utils::compare
This commit is contained in:
parent
76ce6e0c26
commit
25e343cb5b
@ -9,8 +9,8 @@ Utils::Utils(QObject *parent) : QObject(parent)
|
|||||||
|
|
||||||
int Utils::compare(const void* a, const void* b)
|
int Utils::compare(const void* a, const void* b)
|
||||||
{
|
{
|
||||||
int int_a = * ( (int*) a );
|
uint16_t int_a = * ( (uint16_t*) a );
|
||||||
int int_b = * ( (int*) b );
|
uint16_t int_b = * ( (uint16_t*) b );
|
||||||
|
|
||||||
if ( int_a == int_b ) return 0;
|
if ( int_a == int_b ) return 0;
|
||||||
else if ( int_a < int_b ) return -1;
|
else if ( int_a < int_b ) return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user