Skip to content

Commit ea4e420

Browse files
committed
fix compare_MapNode_
why does this need to be specified manually?
1 parent 205c5c3 commit ea4e420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/media.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void delete_StatefulJxlDecoder(iStatefulJxlDecoder *s) {
196196
}
197197

198198
static int compare_MapNode_(iMapKey a, iMapKey b) {
199-
return a < b;
199+
return (a > b) - (a < b);
200200
}
201201

202202
static uint8_t *loadJxl_(const iBlock *data, iInt2 *imSize, iGmLinkId linkId, iBool isPartial) {

0 commit comments

Comments
 (0)