Object: return int on comparison

Comparisons do, due to the new introduced shaceship-comparisons,
only return -1, 0, 1 or the result of strcmp().
This commit is contained in:
Christian Göttsche
2020-12-23 13:02:32 +01:00
committed by BenBE
parent 293c16e22d
commit 90ea3ac3c9
11 changed files with 18 additions and 18 deletions

View File

@ -748,7 +748,7 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces
RichString_appendWide(str, attr, buffer);
}
static long LinuxProcess_compareByKey(const Process* v1, const Process* v2, ProcessField key) {
static int LinuxProcess_compareByKey(const Process* v1, const Process* v2, ProcessField key) {
const LinuxProcess* p1 = (const LinuxProcess*)v1;
const LinuxProcess* p2 = (const LinuxProcess*)v2;