summaryrefslogtreecommitdiffstats
path: root/Object.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-23 13:02:32 +0100
committerBenBE <BenBE@geshi.org>2021-01-02 00:00:17 +0100
commit90ea3ac3c9104d1519e067aeeefc07c7f75313ca (patch)
treee897b8842b495e736286e49aef20a674d14cc26a /Object.h
parent293c16e22da7fbda98eae1836f11e642fcbd699b (diff)
Object: return int on comparison
Comparisons do, due to the new introduced shaceship-comparisons, only return -1, 0, 1 or the result of strcmp().
Diffstat (limited to 'Object.h')
-rw-r--r--Object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Object.h b/Object.h
index 2c3ba9f9..89933fa6 100644
--- a/Object.h
+++ b/Object.h
@@ -24,7 +24,7 @@ struct Object_;
typedef struct Object_ Object;
typedef void(*Object_Display)(const Object*, RichString*);
-typedef long(*Object_Compare)(const void*, const void*);
+typedef int(*Object_Compare)(const void*, const void*);
typedef void(*Object_Delete)(Object*);
#define Object_getClass(obj_) ((const Object*)(obj_))->klass

© 2014-2024 Faster IT GmbH | imprint | privacy policy