From 90ea3ac3c9104d1519e067aeeefc07c7f75313ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 23 Dec 2020 13:02:32 +0100 Subject: Object: return int on comparison Comparisons do, due to the new introduced shaceship-comparisons, only return -1, 0, 1 or the result of strcmp(). --- Object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Object.h') 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 -- cgit v1.2.3