From ea4e4205457df9b5ada8d7655596d91c9c61d591 Mon Sep 17 00:00:00 2001 From: Christoph Liebender Date: Sat, 26 Oct 2024 09:49:01 +0200 Subject: [PATCH] fix compare_MapNode_ why does this need to be specified manually? --- src/media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media.c b/src/media.c index 287ec84d..ddcc7603 100644 --- a/src/media.c +++ b/src/media.c @@ -196,7 +196,7 @@ void delete_StatefulJxlDecoder(iStatefulJxlDecoder *s) { } static int compare_MapNode_(iMapKey a, iMapKey b) { - return a < b; + return (a > b) - (a < b); } static uint8_t *loadJxl_(const iBlock *data, iInt2 *imSize, iGmLinkId linkId, iBool isPartial) {