Fix: Utils::compare

This commit is contained in:
Siegfried Siegert 2023-07-19 15:30:30 +02:00
parent 76ce6e0c26
commit 25e343cb5b
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -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;