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 int_a = * ( (int*) a );
|
||||
int int_b = * ( (int*) b );
|
||||
uint16_t int_a = * ( (uint16_t*) a );
|
||||
uint16_t int_b = * ( (uint16_t*) b );
|
||||
|
||||
if ( int_a == int_b ) return 0;
|
||||
else if ( int_a < int_b ) return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user